/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-h: 160;
    --primary-s: 84%;
    --primary-l: 39%;
    
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-hover: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 8%));
    --primary-light: hsl(var(--primary-h), var(--primary-s), 95%);
    --primary-glow: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.15);
    
    --bg-dark: #0f172a;
    --bg-card-dark: #1e293b;
    --border-dark: #334155;
    --text-dark: #f8fafc;
    --text-muted-dark: #94a3b8;
    
    --bg-light: #f8fafc;
    --bg-card-light: #ffffff;
    --border-light: #e2e8f0;
    --text-light: #0f172a;
    --text-muted-light: #64748b;
    
    /* Default is dark mode */
    --bg: var(--bg-dark);
    --bg-card: var(--bg-card-dark);
    --border: var(--border-dark);
    --text: var(--text-dark);
    --text-muted: var(--text-muted-dark);
    
    --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme {
    --bg: var(--bg-light);
    --bg-card: var(--bg-card-light);
    --border: var(--border-light);
    --text: var(--text-light);
    --text-muted: var(--text-muted-light);
    --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Outfit', 'Hind Siliguri', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Base Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* Header / Navbar */
header {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    transition: var(--transition);
}

body.light-theme header {
    background: rgba(255, 255, 255, 0.7);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-item:hover, .nav-item.active {
    color: var(--text);
    background-color: var(--primary-glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--primary-glow);
}

/* Login Card styling */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 40px 20px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: var(--radius);
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Dashboard styling */
.dashboard-wrapper {
    padding: 40px 0;
    flex-grow: 1;
}

.welcome-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 1px solid var(--primary-glow);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.user-badge {
    background-color: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 45px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card:hover::before {
    transform: scaleY(1);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    margin-top: 10px;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.content-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.list-item {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.list-item:hover {
    background-color: var(--primary-glow);
    border-color: var(--primary);
}

/* Footer */
footer {
    background-color: rgba(15, 23, 42, 0.95);
    color: #64748b;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

body.light-theme footer {
    background-color: #f1f5f9;
}

/* Dashboard Layout with Sidebar */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}

.sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
    transition: var(--transition);
}

.sidebar-profile {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.sidebar-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.sidebar-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: var(--primary-glow);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Mobile Toggle for Sidebar */
.sidebar-toggle {
    display: none;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text);
}

.sidebar-toggle:hover {
    background-color: var(--primary-glow);
    border-color: var(--primary);
}

/* Main content wrapper */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0; /* prevents flex items from overflowing */
}

/* Responsive Styling */
@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        position: static;
        display: none; /* hidden by default on mobile, toggled via JS */
    }
    
    .sidebar.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    .sidebar-toggle {
        display: flex;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Landing Page Styling */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.02) 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    animation: fadeIn 0.8s ease-out;
}

.hero-tag {
    background-color: var(--primary-glow);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--text), hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) + 15%)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .hero-content h1 {
    background: linear-gradient(135deg, var(--text), hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 10%)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

.hero-badge-art {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 300px;
}

.hero-badge-art i {
    font-size: 120px;
    background: linear-gradient(135deg, var(--primary), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(16, 185, 129, 0.2));
    z-index: 2;
    animation: bounce 3s ease-in-out infinite;
}

.art-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0) 70%);
    filter: blur(20px);
    z-index: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Stats Styling */
.landing-stats {
    padding: 40px 0;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.stats-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.landing-stat-card {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}

.landing-stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 12px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.stat-desc {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

/* Features Styling */
.features-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/* About Banner Styling */
.about-banner {
    padding: 60px 0 100px;
}

.about-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 1px solid var(--primary-glow);
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.about-card h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text);
}

.about-card p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive Landing Page */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 15px;
        margin: 0 auto 20px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-badge-art {
        height: 200px;
    }
    
    .hero-badge-art i {
        font-size: 80px;
    }
    
    .about-card {
        padding: 30px 20px;
    }
    
    .about-card h2 {
        font-size: 24px;
    }
}


