/*!***************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./styles/layout.css ***!
  \***************************************************************************************************************************************************************************************************************************************************************/
/* Layout CSS — sidebar + main content + mobile responsive */

/* ═══════════════════════════════════════
   DESKTOP SIDEBAR (≥ 768px)
═══════════════════════════════════════ */
.page-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--zel-blue), var(--zel-cyan));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.sidebar-brand {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.sidebar-tagline {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.75rem;
    flex: 1 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    font-family: var(--font-sans);
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.sidebar-link.active {
    color: var(--zel-blue-light);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.sidebar-footer {
    padding: 1rem 0.75rem 0;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.main-content {
    margin-left: 240px;
    flex: 1 1;
    padding: 2rem;
    min-height: 100vh;
}

/* ═══════════════════════════════════════
   MOBILE ELEMENTS (hidden on desktop)
═══════════════════════════════════════ */
.mobile-topbar,
.mobile-bottom-nav,
.mobile-drawer-overlay {
    display: none;
}

/* ═══════════════════════════════════════
   MOBILE BREAKPOINT (≤ 767px)
═══════════════════════════════════════ */
@media (max-width: 767px) {

    /* Hide desktop sidebar */
    .sidebar-desktop {
        display: none;
    }

    /* Main content fills full width, add top + bottom padding for bars */
    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: calc(56px + 1rem);
        /* below top bar */
        padding-bottom: calc(64px + 1rem);
        /* above bottom nav */
    }

    /* ── Top bar ── */
    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        padding: 0 1rem;
        z-index: 150;
    }

    .mobile-topbar-left {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .mobile-menu-btn {
        background: none;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        color: var(--text-secondary);
        cursor: pointer;
        padding: 5px 7px;
        line-height: 0;
        transition: all var(--transition);
    }

    .mobile-menu-btn:hover {
        color: var(--text-primary);
        border-color: var(--border-accent);
        background: var(--bg-elevated);
    }

    /* ── Slide-out drawer (triggered by hamburger) ── */
    .mobile-drawer-overlay {
        display: flex;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 200;
        align-items: stretch;
    }

    .mobile-drawer {
        width: 240px;
        background: var(--bg-surface);
        border-right: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        padding: 1.5rem 0;
        animation: slideIn 0.22s ease;
    }

    @keyframes slideIn {
        from {
            transform: translateX(-100%);
        }

        to {
            transform: translateX(0);
        }
    }

    /* ── Bottom navigation bar ── */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: var(--bg-surface);
        border-top: 1px solid var(--border);
        z-index: 150;
        align-items: center;
        justify-content: space-around;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--text-muted);
        font-size: 0.62rem;
        font-weight: 500;
        text-decoration: none;
        padding: 0.5rem 1rem;
        border-radius: var(--radius-sm);
        transition: all var(--transition);
        border: none;
        background: none;
        cursor: pointer;
        font-family: var(--font-sans);
        flex: 1 1;
    }

    .mobile-nav-item.active {
        color: var(--zel-blue-light);
    }

    .mobile-nav-item:hover {
        color: var(--text-primary);
    }

    /* ── Modals: full-screen on mobile ── */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-box {
        max-width: 100%;
        border-radius: var(--radius) var(--radius) 0 0;
        max-height: 92vh;
        padding: 1.25rem 1rem;
    }

    /* ── Page header stacks on mobile ── */
    .page-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .page-header .btn {
        width: 100%;
        justify-content: center;
    }

    /* h1 smaller */
    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.15rem;
    }
}
