:root {
    --primary: #1e293b;
    --bg: #f1f5f9;
    --header-height: 64px;
    --sidebar-width: 260px;
}

/* =========================
   GLOBAL
   ========================= */
body {
    margin: 0;
    background: var(--bg);
    font-family: 'Inter', system-ui, sans-serif;
}

/* =========================
   HEADER
   ========================= */
.app-header {
    height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;   /* stays on top, no overlap */
    top: 0;
    z-index: 100;
}

/* =========================
   LAYOUT WRAPPER
   ========================= */
.app-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: calc(100vh - var(--header-height));
}

/* =========================
   SIDEBAR (NOT FIXED)
   ========================= */
.app-sidebar {
    background: var(--primary);
    color: #ffffff;
    padding: 20px;
}

/* Brand */
.app-sidebar .brand {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

/* Menu */
.app-sidebar .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.app-sidebar .menu li {
    margin-bottom: 8px;
}

/* Menu links */
.app-sidebar .menu a {
    text-decoration: none;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    font-size: 20px;
    font-weight: 500;
}

.app-sidebar .menu a:hover,
.app-sidebar .menu a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* =========================
   MAIN CONTENT
   ========================= */
.app-content {
    padding: 24px;
    background: var(--bg);
}


/* Sidebar Module Icons */

/*
.menu > li > a {
    font-size: 18px !important;
    font-weight: 600;
}

/* Sidebar Secondary Menus
.menu-item > a {
    font-size: 18px !important;
    color: #cbd5e0; /* Slightly lighter color
}
*/

/* Sidebar Sub-menus*/
.sub-menu a {
    font-size: 18px !important;
    opacity: 0.8;
}
