/* ===================================== */
/* UNIFIED SIDEBAR & NAVIGATION STYLES   */
/* Valley The Kings - Dashboard System   */
/* ===================================== */

:root {
    --primary-teal: #2d9b9e;
    --primary-teal-light: #4ab9bc;
    --primary-teal-dark: #1e6b6d;
    --accent-coral: #ff8457;
    --accent-coral-light: #ffb3a1;
    --success-green: #4ade80;
    --info-blue: #3b82f6;
    --warning-amber: #fbbf24;
    --bg-cream: #fefaf7;
    --bg-light: #f5f3f0;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --text-light: #f5f3f0;
    --border-color: #e5e7eb;
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 12px 35px -4px rgba(0, 0, 0, 0.12);
    --sidebar-bg: #1e3c5f;
}

/* ===== SIDEBAR BASE ===== */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, #1a2e4a 100%);
    color: var(--text-light);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    padding: 30px 0;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(77, 185, 188, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* ===== SIDEBAR BRAND ===== */
.sidebar-brand {
    padding: 0 25px 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    z-index: 10;
}

.sidebar-brand h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-brand h3 i {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-brand p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar-nav {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 15px;
    position: relative;
    z-index: 10;
}

.sidebar-nav li {
    margin: 0;
}

.nav-section-title {
    padding: 12px 18px;
    margin-top: 16px;
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none;
}

.sidebar-nav li:first-of-type .nav-section-title {
    margin-top: 0;
}

/* ===== SIDEBAR LINKS ===== */
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    border-radius: 10px;
    position: relative;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #ffd700;
    padding-left: 24px;
}

.sidebar-nav a.active {
    color: white;
    background: rgba(77, 185, 188, 0.3);
    border-left-color: #ffd700;
    padding-left: 24px;
    font-weight: 600;
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
    font-size: 17px;
    flex-shrink: 0;
}

/* ===== SIDEBAR LOGOUT ===== */
.sidebar-logout {
    margin-top: auto;
    padding: 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logout-btn:hover {
    background: rgba(255, 100, 61, 0.25);
    border-color: rgba(255, 100, 61, 0.5);
    color: #ffb3a1;
    transform: translateY(-2px);
}

/* ===== MAIN CONTENT LAYOUT ===== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-header {
    background: white;
    padding: 24px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.header-welcome {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-welcome h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
}

.header-welcome p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.dashboard-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 250px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .dashboard-header {
        padding: 16px 20px;
    }

    .dashboard-content {
        padding: 20px;
    }

    .sidebar-brand {
        padding: 0 15px 20px;
    }

    .sidebar-brand h3 {
        font-size: 20px;
    }
}

/* ===== SCROLLBAR STYLING ===== */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}
