/* =========================
   GLOBAL LAYOUT
========================= */
body {
    margin: 0;
    font-family: Arial;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.layout {
    display: flex;
    flex: 1;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    width: 250px;
    background: #111827;
    color: #fff;
    padding: 15px;
    overflow-y: auto;
    height: 100vh;
    position: sticky;
    top: 0;
}

/* Search */
.sidebar input {
    font-size: 14px;
}

/* Links */
.sidebar a {
    display: block;
    padding: 8px 10px;
    margin: 5px 0;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.2s;
}

.sidebar a:hover {
    background: #1e293b;
    color: #fff;
}

.sidebar a.active {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

/* =========================
   SIDEBAR SECTIONS
========================= */

/* Section title (main categories) */
.sidebar-title {
    font-size: 15px; /* FIXED hierarchy */
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    color: #e2e8f0;
    padding: 6px 8px;
    border-radius: 6px;
}

.sidebar-title:hover {
    background: #1e293b;
    color: #fff;
}

/* Collapsible items (default hidden) */
.sidebar-items {
    display: none; /* ?? collapsed by default */
    padding-left: 10px;
}

/* =========================
   MAIN CONTENT
========================= */
.main {
    flex: 1;
    padding: 20px;
    background: #f4f6fb;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #111827;
    color: #fff;
    text-align: center;
    padding: 10px;
}

/* =========================
   DASHBOARD CARDS
========================= */
.tile-card {
    border-radius: 12px;
    transition: 0.3s;
    cursor: pointer;
}

.tile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.tile-icon i {
    font-size: 30px;
}

