/* =================================================================== */
/* ===== YUVA 2025 - GENERAL SITE STYLES (FINAL & CORRECTED) ===== */
/* =================================================================== */

/* ===== Root Variables ===== */
:root {
    /* (Your excellent design system is unchanged) */
    --saffron-primary: #FF9933;
    --saffron-light: #FFB366;
    --saffron-dark: #E67300;
    --saffron-pale: #FFE5CC;
    --white-primary: #FFFFFF;
    --white-warm: #FAFAF9;
    --white-cream: #F5F5F4;
    --green-primary: #138808;
    --green-light: #22C55E;
    --green-dark: #0F6606;
    --green-pale: #D1FAE5;
    --navy-chakra: #000080;
    --navy-dark: #00005C;
    --color-primary: var(--navy-chakra);
    --color-primary-hover: var(--navy-dark);
    --color-secondary: var(--green-primary);
    --color-accent: var(--saffron-primary);
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-on-dark: var(--white-primary);
    --text-on-accent: var(--white-primary);
    --bg-base: var(--white-warm);
    --bg-elevated: var(--white-primary);
    --bg-subtle: var(--white-cream);
    --bg-muted: #F1F5F9;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --border-accent: var(--saffron-primary);
    --gradient-hero: linear-gradient(135deg, var(--saffron-light) 0%, var(--white-primary) 50%, var(--green-light) 100%);
    --gradient-saffron: linear-gradient(135deg, var(--saffron-primary) 0%, var(--saffron-dark) 100%);
    --gradient-green: linear-gradient(135deg, var(--green-light) 0%, var(--green-primary) 100%);
    --gradient-navy: linear-gradient(135deg, var(--navy-chakra) 0%, var(--navy-dark) 100%);
    --gradient-subtle: linear-gradient(180deg, var(--white-primary) 0%, var(--white-warm) 100%);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --z-dropdown: 1000;
    --z-sticky: 1100;
    --z-fixed: 1200;
}


/* ===== Global Styles ===== */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    display: flex;
    line-height: 1.6;
}

/* ===== Website Header (Modernized) ===== */
.site-header {
    position: fixed;
    top: var(--space-md);
    left: var(--space-md);
    right: calc(60px + var(--space-md) * 2);
    height: 60px;
    background: rgba(255, 229, 204, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 153, 51, 0.2);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    padding: 0 var(--space-lg);
    border-radius: var(--radius-xl);
    transition: margin-right var(--transition-base);
    /* Correct transition */
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.logo {
    grid-column: 1 / 2;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.page-title {
    grid-column: 2 / 3;
    justify-self: center;
    position: static;
    transform: none;
    font-size: var(--font-lg);
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.logo img {
    height: 36px;
}

.logo h1 {
    font-size: var(--font-lg);
    font-weight: 700;
}

.header-actions {
    grid-column: 3 / 4;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-actions .header-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    transition: var(--transition-base);
    cursor: pointer;
    line-height: 1.5;
    text-decoration: none;
}

/* Style for the outline button (Login) */
.header-actions .header-btn-outline {
    background: transparent;
    border-color: var(--color-primary);
    /* Navy border */
    color: var(--color-primary);
    /* Navy text */
    box-shadow: none;
}

.header-actions .header-btn-outline:hover {
    background: var(--color-primary);
    /* Fills with navy on hover */
    color: var(--text-on-dark);
    /* Text becomes white on hover */
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}


/* ===== Sidebar (Right Side) ===== */
.sidebar {
    position: fixed;
    right: -260px;
    left: auto;
    top: 0;
    width: 260px;
    height: 100vh;
    background: var(--gradient-subtle);
    border-left: 1px solid var(--border-light);
    transition: right var(--transition-base);
    z-index: var(--z-sticky);
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.sidebar-active .sidebar {
    right: 0;
}

.sidebar-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: var(--space-xl);
    box-sizing: border-box;
}

.sidebar h2 {
    margin-bottom: var(--space-2xl);
    font-size: var(--font-2xl);
    font-weight: 800;
    background: var(--gradient-navy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: var(--space-xs) 0;
    display: block;
    font-weight: 600;
    transition: var(--transition-fast);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    position: relative;
}

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

.sidebar a.active-link {
    background: var(--saffron-pale);
    color: var(--saffron-dark);
    font-weight: 700;
}

.sidebar a.active-link::before {
    content: '';
    position: absolute;
    right: 0;
    left: auto;
    top: 25%;
    bottom: 25%;
    width: 4px;
    background: var(--saffron-dark);
    border-radius: var(--radius-full);
}

.dropdown-btn {
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: var(--font-base);
    width: 100%;
    padding: var(--space-sm) var(--space-lg);
    transition: var(--transition-fast);
    border-radius: var(--radius-lg);
}

.dropdown-btn:hover {
    background-color: var(--bg-subtle);
    color: var(--color-primary);
}

.dropdown.active>.dropdown-btn {
    background-color: var(--green-pale);
    color: var(--green-dark);
}

.dropdown-content {
    display: none;
    flex-direction: column;
    padding-left: var(--space-xl);
    margin-top: var(--space-sm);
    border-left: 2px solid var(--border-light);
}

.dropdown.active .dropdown-content {
    display: flex;
}

/* ===== Toggle Button (Modernized) ===== */
.toggle-btn {
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    left: auto;
    background: rgba(255, 229, 204, 0.6);
    backdrop-filter: blur(12px);
    color: var(--saffron-dark);
    border: 1px solid rgba(255, 153, 51, 0.2);
    padding: 0;
    border-radius: var(--radius-xl);
    cursor: pointer;
    z-index: var(--z-fixed);
    transition: background var(--transition-base), transform var(--transition-base);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.toggle-btn:hover {
    background: rgba(255, 229, 204, 0.8);
    transform: scale(1.05);
}

/* ===== Custom Scrollbar ===== */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: var(--radius-full);
}

/* ===== Main Content Area ===== */
.main {
    margin-right: 0;
    margin-left: 0;
    flex: 1;
    width: 100%;
    transition: margin-right var(--transition-base);
}

/* PUSH LOGIC (Desktop Only) */
@media (min-width: 1025px) {
    body.sidebar-active .main {
        margin-right: 270px;
    }

    body.sidebar-active .site-header {
        margin-right: 180px;
        /* CORRECTED: This makes the header move with the content */
    }
}

/* ===== MOBILE & RESPONSIVE DESIGN ===== */
.hamburger-menu {
    display: none;
    z-index: var(--z-fixed);
}

@media (max-width: 1024px) {
    .site-header {
        left: var(--space-md);
        right: var(--space-md);
    }

    .toggle-btn {
        display: none;
    }

    .hamburger-menu {
        display: block;
        position: fixed;
        top: var(--space-md);
        right: var(--space-md);
        left: auto;
        cursor: pointer;
        padding: 0;
        width: 60px;
        height: 60px;
        background: rgba(255, 229, 204, 0.6);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 153, 51, 0.2);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg);
    }

    .hamburger-menu .bar {
        display: block;
        width: 24px;
        height: 2px;
        margin: 5px auto;
        background-color: var(--saffron-dark);
        transition: var(--transition-base);
    }

    .hamburger-menu.is-active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.is-active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}