/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&family=Hind:wght@300..700&display=swap');

:root {
    /* Colors */
    --primary: #FF6B35;
    --primary-dark: #E85520;
    --secondary: #1A1A2E;
    --accent: #FFD700;
    --bg: #F8F7F4;
    --card-bg: #FFFFFF;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --text-main: #333333;
    --text-light: #666666;

    /* Border Radius */
    --br-sm: 8px;
    --br-md: 14px;
    --br-lg: 20px;
    --br-xl: 30px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.12);
    --shadow-hover: 0 15px 25px rgba(255, 107, 53, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: clip; /* hidden ki jagah 'clip' likhein, isse sticky header perfectly kaam karega */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Baloo 2', cursive;
    color: var(--secondary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--br-md);
    font-family: 'Hind', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* --- Navbar --- */
.announcement-bar {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.navbar {
    background: var(--card-bg);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Baloo 2', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary);
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.section-title span {
    color: var(--primary);
}

/* --- Toast Notification --- */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-item {
    background: var(--secondary);
    color: white;
    padding: 12px 20px;
    border-radius: var(--br-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Loading Screen --- */
.loading-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu logic will be handled in JS */
    }
    .hamburger {
        display: block;
    }
    .section-title {
        font-size: 2rem;
    }
}

/* --- Global Floating Navigation Buttons --- */
.global-floating-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    gap: 10px;
}

.global-floating-nav button {
    background: var(--secondary);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    border-radius: 30px;
    font-family: 'Hind', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.global-floating-nav button:hover {
    background: var(--primary);
    transform: translateY(-3px);
    border-color: white;
}

/* Mobile ke liye floating buttons HIDE kar diye */
@media (max-width: 768px) {
    .global-floating-nav {
        display: none !important;
    }
}

/* --- Clickable Logo Styles --- */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}
.brand-logo img {
    max-height: 40px; /* Logo image ki height yahan se kam-zyada kar sakte ho */
    width: auto;
    border-radius: 5px;
}
.brand-logo h2, .brand-logo span {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    color: var(--primary);
}
.sidebar-header .brand-logo h2 {
    color: var(--primary);
}

/* css/dashboard.css ke andar ye changes karein */

/* --- Sidebar --- */
.sidebar {
    width: 260px;
    background-color: var(--secondary);
    color: white;
    position: fixed; /* Ye sidebar ko hamesha fix rakhega */
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1001; /* Z-index badha diya taaki ye sabse upar rahe */
    display: flex;
    flex-direction: column;
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    margin-left: 260px; /* Sidebar ki width ke barabar space chhoda */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - 260px);
}

/* --- Dashboard Navbar (Header) --- */
.dash-navbar {
    background: var(--card-bg);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    
    /* Ye 3 lines Header ko top par fix kar dengi */
    position: sticky; 
    top: 0;
    z-index: 1000; /* Sidebar se thoda kam, par baaki content se upar */
    
    height: 70px;
}

/* Mobile responsive fix */
@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .dash-navbar {
        width: 100%;
    }
}