/* =====================================================
   STARTER THEME - Emerald palette override
   ===================================================== */

:root {
    --primary-color: #059669;
    --primary-hover: #047857;
    --primary-light: #ecfdf5;
    --hero-gradient-start: #059669;
    --hero-gradient-end: #0d9488;
}

[data-bs-theme="dark"] {
    --primary-color: #34d399;
    --primary-hover: #6ee7b7;
    --primary-light: #064e3b;
    --hero-gradient-start: #059669;
    --hero-gradient-end: #0d9488;
}

/* =====================================================
   SIDEBAR LAYOUT
   ===================================================== */

/* Hide default clientarea top navbar when sidebar is active */
.starter-sidebar-active .clientarea-navbar {
    display: none !important;
}

/* Sidebar + Content wrapper */
.starter-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* Sidebar */
.starter-sidebar {
    width: 240px;
    flex-shrink: 0;
    background-color: var(--card-bg);
    border-right: 1px solid color-mix(in srgb, var(--card-border) 50%, transparent);
    padding: 1.25rem 0;
    position: sticky;
    top: 48px;
    height: calc(100vh - 48px);
    overflow-y: auto;
}

.starter-sidebar-section {
    padding: 0 0.75rem;
    margin-bottom: 1rem;
}

.starter-sidebar-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.starter-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.4375rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.starter-sidebar-link:hover {
    background-color: var(--dropdown-link-hover);
    color: var(--body-color);
}

.starter-sidebar-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

.starter-sidebar-link i {
    width: 1rem;
    font-size: 0.875rem;
    opacity: 0.6;
}

.starter-sidebar-link.active i,
.starter-sidebar-link:hover i {
    opacity: 1;
}

.starter-sidebar-badge {
    margin-left: auto;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 1rem;
    background-color: var(--primary-color);
    color: white;
}

/* Content area next to sidebar */
.starter-content {
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
}

/* =====================================================
   DASHBOARD STATS CARDS
   ===================================================== */
.starter-stat-card {
    padding: 1rem 1.25rem;
}

.starter-stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.starter-stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.starter-stat-card .stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991.98px) {
    .starter-sidebar {
        display: none;
    }

    .starter-layout {
        flex-direction: column;
    }

    .starter-content {
        padding: 1rem;
    }

    /* Show default nav on mobile */
    .starter-sidebar-active .clientarea-navbar {
        display: flex !important;
    }
}
