/* ===== LOGO COLOR PALETTE =====
           Navy BG    : #0d1b2e
           Dark Navy  : #091422
           Blue       : #1565d8
           Blue Light : #1e90ff
           Cyan Glow  : #00c8ff
           Orange     : #e55c00
           Orange Hot : #ff7020
           Red-Orange : #c83000
        ================================ */

:root {
    --efx-v1-navy: #0d1b2e;
    --efx-v1-navy-dark: #091422;
    --efx-v1-navy-mid: #112240;
    --efx-v1-blue: #1565d8;
    --efx-v1-blue-light: #1e90ff;
    --efx-v1-cyan: #00c8ff;
    --efx-v1-orange: #e55c00;
    --efx-v1-orange-hot: #ff7020;
    --efx-v1-red-org: #c83000;
    --efx-v1-sidebar-w: 230px;
    --efx-v1-header-h: 52px;
    --efx-v1-footer-h: 46px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Exo 2", "Helvetica Neue", sans-serif;
    font-size: 14px;
    background: #ecf0f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
           HEADER — fixed top
        ============================================================ */
#efx-v1-main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--efx-v1-header-h);
    z-index: 1100;
    background: linear-gradient(90deg, var(--efx-v1-navy-dark) 0%, var(--efx-v1-navy) 40%, #0e1f38 100%);
    border-bottom: 2px solid var(--efx-v1-blue);
    box-shadow: 0 2px 12px rgba(0, 100, 255, 0.25);
    display: flex;
    align-items: center;
}

/* Brand / Logo block */
.efx-v1-header-brand {
    width: var(--efx-v1-sidebar-w);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 18px;
    background: var(--efx-v1-navy-dark);
    border-right: 1px solid rgba(30, 144, 255, 0.2);
    gap: 10px;
    flex-shrink: 0;
}

.efx-v1-brand-logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--efx-v1-blue), var(--efx-v1-cyan));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.4);
    flex-shrink: 0;
}

.efx-v1-brand-logo-icon svg {
    width: 20px;
    height: 20px;
}

.efx-v1-brand-name {
    font-family: "Rajdhani", sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}

.efx-v1-brand-name .e {
    color: var(--efx-v1-cyan);
}
.efx-v1-brand-name .form {
    color: #fff;
}
.efx-v1-brand-name .x {
    color: var(--efx-v1-orange-hot);
}

/* Sidebar toggle */
.efx-v1-header-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    padding: 0 18px;
    height: 100%;
    transition:
        color 0.2s,
        background 0.2s;
}
.efx-v1-header-toggle:hover {
    color: var(--efx-v1-cyan);
    background: rgba(0, 200, 255, 0.07);
}

/* Page title in header */
.efx-v1-header-page-title {
    font-family: "Rajdhani", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* Right side nav */
.efx-v1-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.efx-v1-hnav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.efx-v1-hnav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    text-decoration: none;
    transition:
        color 0.2s,
        background 0.2s;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.efx-v1-hnav-item > a:hover {
    color: var(--efx-v1-cyan);
    background: rgba(0, 200, 255, 0.07);
}

.efx-v1-hnav-badge {
    display: inline-block;
    background: var(--efx-v1-orange);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    line-height: 1.4;
}

.efx-v1-hnav-badge.red {
    background: var(--efx-v1-red-org);
}
.efx-v1-hnav-badge.green {
    background: #00a85a;
}

/* Dropdown */
.efx-v1-hnav-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: var(--efx-v1-header-h);
    background: var(--efx-v1-navy-dark);
    border: 1px solid rgba(30, 144, 255, 0.25);
    border-top: 2px solid var(--efx-v1-blue);
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1200;
    list-style: none;
}

.efx-v1-hnav-item:hover .efx-v1-hnav-dropdown {
    display: block;
}

.efx-v1-hnav-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-decoration: none;
    transition:
        background 0.15s,
        color 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.efx-v1-hnav-dropdown li a:hover {
    background: rgba(30, 144, 255, 0.12);
    color: var(--efx-v1-cyan);
}

.efx-v1-hnav-dropdown li a i {
    width: 16px;
    text-align: center;
    color: var(--efx-v1-blue-light);
}
.efx-v1-hnav-dropdown .efx-v1-dd-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

/* User pill */
.efx-v1-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 100%;
    cursor: pointer;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}
.efx-v1-user-pill:hover {
    background: rgba(0, 200, 255, 0.07);
}

.efx-v1-user-pill img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--efx-v1-blue);
}

.efx-v1-user-pill-info {
    line-height: 1.2;
}
.efx-v1-user-pill-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 0.3px;
}
.efx-v1-user-pill-role {
    font-size: 10px;
    color: var(--efx-v1-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.efx-v1-user-pill .efx-v1-caret {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
}

/* ============================================================
           SIDEBAR — Extended to bottom edge (Grid Lines Removed)
        ============================================================ */
#efx-v1-sidebar {
    position: fixed;
    top: var(--efx-v1-header-h);
    left: 0;
    bottom: 0;
    width: var(--efx-v1-sidebar-w);
    z-index: 1010;
    background: var(--efx-v1-navy-dark); /* Solid solid background view retained */
    border-right: 1px solid rgba(30, 144, 255, 0.18);
    overflow-y: auto;
    overflow-x: hidden;
    transition:
        width 0.3s ease,
        transform 0.3s;
    /* Grid texture linear gradient styles removed perfectly */
}

/* User panel inside sidebar */
.efx-v1-sb-user-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 15px;
    border-bottom: 1px solid rgba(30, 144, 255, 0.15);
    background: rgba(0, 0, 0, 0.2);
}

.efx-v1-sb-user-panel img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--efx-v1-blue);
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
}

.efx-v1-sb-user-name {
    font-family: "Rajdhani", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.efx-v1-sb-user-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #00a85a;
    font-weight: 600;
}

.efx-v1-sb-user-status::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #00a85a;
    border-radius: 50%;
    box-shadow: 0 0 5px #00a85a;
}

/* Search */
.efx-v1-sb-search {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(30, 144, 255, 0.1);
}

.efx-v1-sb-search-inner {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(30, 144, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.efx-v1-sb-search-inner:focus-within {
    border-color: var(--efx-v1-blue-light);
}

.efx-v1-sb-search-inner input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 7px 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-family: "Exo 2", sans-serif;
}
.efx-v1-sb-search-inner input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.efx-v1-sb-search-inner button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    padding: 0 10px;
    cursor: pointer;
    transition: color 0.2s;
}
.efx-v1-sb-search-inner button:hover {
    color: var(--efx-v1-cyan);
}

/* Nav menu */
.efx-v1-sb-menu {
    list-style: none;
    padding: 8px 0;
}

.efx-v1-sb-section-header {
    padding: 12px 15px 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(0, 200, 255, 0.4);
    font-family: "Rajdhani", sans-serif;
}

.efx-v1-sb-item {
    margin: 2px 8px;
    border-radius: 5px;
    overflow: hidden;
}

.efx-v1-sb-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition:
        background 0.18s,
        color 0.18s;
    border-radius: 5px;
}

.efx-v1-sb-item a .efx-v1-sb-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    color: rgba(30, 144, 255, 0.7);
    flex-shrink: 0;
    transition:
        background 0.18s,
        color 0.18s;
}

.efx-v1-sb-item a .efx-v1-sb-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    background: var(--efx-v1-orange);
    color: #fff;
}

.efx-v1-sb-item a .efx-v1-sb-badge.blue {
    background: var(--efx-v1-blue);
}
.efx-v1-sb-item a .efx-v1-sb-badge.red {
    background: var(--efx-v1-red-org);
}

.efx-v1-sb-item a:hover {
    background: rgba(21, 101, 216, 0.12);
    color: #fff;
}

.efx-v1-sb-item a:hover .efx-v1-sb-icon {
    background: rgba(21, 101, 216, 0.25);
    color: var(--efx-v1-cyan);
}

.efx-v1-sb-item.active a {
    background: linear-gradient(90deg, rgba(21, 101, 216, 0.3) 0%, rgba(21, 101, 216, 0.1) 100%);
    color: #fff;
    border-left: 3px solid var(--efx-v1-orange-hot);
}

.efx-v1-sb-item.active a .efx-v1-sb-icon {
    background: rgba(229, 92, 0, 0.2);
    color: var(--efx-v1-orange-hot);
}

/* Sidebar separator line */
.efx-v1-sb-sep {
    height: 1px;
    background: rgba(30, 144, 255, 0.1);
    margin: 8px 15px;
}

/* ============================================================
           CONTENT WRAPPER
        ============================================================ */
#efx-v1-content-wrapper {
    margin-left: var(--efx-v1-sidebar-w);
    margin-top: var(--efx-v1-header-h);
    flex: 1 0 auto;
    background: #ecf0f5;
    padding: 30px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: margin-left 0.3s;
}

.efx-v1-empty-state {
    text-align: center;
    color: #aaa;
}
.efx-v1-empty-state i {
    font-size: 64px;
    color: #d2d6de;
    margin-bottom: 20px;
    display: block;
}
.efx-v1-empty-state p {
    font-size: 15px;
    color: #bbb;
}

/* ============================================================
           FOOTER — Fixed Bottom Optimization for All Screens
        ============================================================ */
#efx-v1-main-footer {
    flex-shrink: 0;
    position: fixed;
    bottom: 0;
    left: var(--efx-v1-sidebar-w);
    right: 0;
    height: var(--efx-v1-footer-h);
    z-index: 1000;
    background: var(--efx-v1-navy-dark);
    border-top: 2px solid var(--efx-v1-blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    transition:
        left 0.3s,
        position 0.3s;
    box-shadow: 0 -2px 12px rgba(0, 100, 255, 0.15);
}

.efx-v1-footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    font-family: "Exo 2", sans-serif;
    white-space: nowrap;
}

.efx-v1-footer-copy strong {
    color: var(--efx-v1-cyan);
    font-weight: 600;
}

.efx-v1-footer-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.efx-v1-footer-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

.efx-v1-footer-stat i {
    font-size: 11px;
}
.efx-v1-footer-stat .val {
    font-family: "Rajdhani", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--efx-v1-cyan);
}

.efx-v1-footer-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #00a85a;
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 0 6px #00a85a;
    animation: efx-v1-pulse 1.5s infinite;
}

.efx-v1-footer-sep {
    color: rgba(255, 255, 255, 0.12);
}

.efx-v1-footer-version {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 3px;
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 0.5px;
}

@keyframes efx-v1-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Mobile Backdrop Overlay */
.efx-v1-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

/* ============================================================
           SIDEBAR COLLAPSED STATE
        ============================================================ */
body.collapsed #efx-v1-sidebar {
    width: 0;
}
body.collapsed #efx-v1-content-wrapper {
    margin-left: 0;
}
body.collapsed #efx-v1-main-footer {
    left: 0;
}

/* ============================================================
           MOBILE & RESPONSIVE BREAKPOINTS (PERFECT FIXED STATE)
        ============================================================ */
@media (max-width: 1024px) {
    #efx-v1-main-footer {
        padding: 0 15px;
    }
    .efx-v1-footer-right {
        gap: 10px;
    }
}

@media (max-width: 850px) {
    .efx-v1-header-page-title {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 75px; /* Prevent template overlap on mobile */
    }
    #efx-v1-sidebar {
        transform: translateX(-100%);
        width: var(--efx-v1-sidebar-w);
        bottom: 0;
        height: auto;
    }
    body.mobile-open #efx-v1-sidebar {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }
    body.mobile-open .efx-v1-backdrop {
        display: block;
    }

    #efx-v1-content-wrapper {
        margin-left: 0;
    }

    /* Responsive Mobile Footer Lock Engine (Fixed bottom patch) */
    #efx-v1-main-footer {
        left: 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        height: auto !important;
        flex-direction: column;
        gap: 6px;
        padding: 10px;
        text-align: center;
        border-top: 2px solid var(--efx-v1-blue);
        width: 100%;
    }
    .efx-v1-footer-copy {
        white-space: normal;
        line-height: 1.2;
        font-size: 11px;
    }
    .efx-v1-footer-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 10px;
        width: 100%;
    }
    .efx-v1-footer-stat {
        font-size: 11px;
    }
    .efx-v1-footer-stat .val {
        font-size: 12px;
    }
    .efx-v1-footer-sep {
        display: none;
    }

    .efx-v1-header-brand {
        width: auto;
    }
    .efx-v1-brand-name {
        display: none;
    }
    .efx-v1-user-pill-info {
        display: none;
    }
    .efx-v1-user-pill {
        padding: 0 10px;
    }
}

@media (max-width: 420px) {
    .efx-v1-hnav-dropdown {
        right: -40px;
        width: 240px;
    }
    .efx-v1-hnav-item > a {
        padding: 0 8px;
    }
}
