/* =========================================
   1. BASE VARIABLES & SETUP
   ========================================= */
:root {
    --brand-blue: #2d8eff;
    --brand-blue-hover: #1c75db;
    --white: #ffffff;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-gray: #f8fafc;
    --error-red: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--white); color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; }

/* =========================================
   2. LOGO STYLING
   ========================================= */
.logo img { height: 40px; width: auto; display: block; }
.auth-logo img { height: 50px; width: auto; margin: 0 auto 1rem auto; display: block; }

/* =========================================
   3. HIGH-END LANDING PAGE (index.html)
   ========================================= */
.landing-body { background-color: #ffffff; overflow-x: hidden; }

nav.public-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 5%; background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky; top: 0; z-index: 1000;
}

.nav-buttons a { padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; transition: all 0.2s ease; font-size: 0.95rem; }
.login-btn { color: var(--text-dark); margin-right: 1rem; }
.login-btn:hover { color: var(--brand-blue); }
.signup-btn { background-color: var(--text-dark); color: var(--white); }
.signup-btn:hover { background-color: var(--brand-blue); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(45, 142, 255, 0.2); }

/* Premium Hero Section */
.hero-premium {
    position: relative; padding: 8rem 5% 6rem; text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    overflow: hidden;
}

.glow-blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; z-index: 0; pointer-events: none;
}
.glow-blob.top-left { width: 400px; height: 400px; background: rgba(45, 142, 255, 0.3); top: -100px; left: -100px; }
.glow-blob.bottom-right { width: 500px; height: 500px; background: rgba(139, 92, 246, 0.2); bottom: -150px; right: -150px; }

.hero-content { position: relative; z-index: 10; max-width: 850px; }

.badge {
    display: inline-block; padding: 0.4rem 1rem; background-color: #f1f5f9; color: var(--text-dark);
    font-size: 0.85rem; font-weight: 600; border-radius: 20px; margin-bottom: 1.5rem; border: 1px solid #e2e8f0;
}

.hero-content h1 { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1.5px; color: #0f172a; }
.hero-content h1 span { color: var(--brand-blue); background: linear-gradient(135deg, var(--brand-blue), #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: 1.25rem; color: var(--text-light); margin-bottom: 2.5rem; max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.7; }

.cta-btn-massive {
    display: inline-block; background-color: var(--brand-blue); color: var(--white);
    font-size: 1.15rem; font-weight: 700; padding: 1.2rem 3rem; border-radius: 12px;
    box-shadow: 0 10px 25px rgba(45, 142, 255, 0.3); transition: all 0.3s ease;
}
.cta-btn-massive:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(45, 142, 255, 0.4); }

.social-proof { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 3rem; }
.avatars { display: flex; }
.mini-avatar-img { 
    width: 35px; height: 35px; border-radius: 50%; border: 3px solid var(--white); 
    display: flex; justify-content: center; align-items: center; color: white; font-weight: bold; font-size: 0.8rem; margin-left: -12px; 
}
.mini-avatar-img:first-child { margin-left: 0; }
.social-proof span { color: var(--text-light); font-size: 0.95rem; }
.social-proof strong { color: var(--text-dark); }

/* Features Grid */
.features-premium { padding: 6rem 5%; background-color: #f8fafc; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 4rem auto; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; color: #0f172a; margin-bottom: 1rem; letter-spacing: -0.5px; }
.section-header p { font-size: 1.1rem; color: var(--text-light); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; max-width: 1200px; margin: 0 auto; }
.premium-feature-card {
    background: var(--white); padding: 2.5rem; border-radius: 16px; border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); transition: all 0.3s ease;
}
.premium-feature-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); border-color: #cbd5e1; }

.feature-icon { width: 60px; height: 60px; border-radius: 14px; display: flex; justify-content: center; align-items: center; margin-bottom: 1.5rem; color: white; }
.feature-icon svg { width: 30px; height: 30px; }
.bg-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.bg-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.bg-green { background: linear-gradient(135deg, #22c55e, #16a34a); }

.premium-feature-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; color: #0f172a; }
.premium-feature-card p { color: var(--text-light); font-size: 1rem; line-height: 1.7; }

/* Bottom CTA */
.bottom-cta { padding: 6rem 5%; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); text-align: center; }
.cta-content { max-width: 700px; margin: 0 auto; color: white; }
.cta-content h2 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -1px; }
.cta-content p { font-size: 1.15rem; color: #cbd5e1; margin-bottom: 2.5rem; }
.cta-btn-light {
    display: inline-block; background-color: var(--white); color: #0f172a;
    font-size: 1.1rem; font-weight: 700; padding: 1.2rem 3rem; border-radius: 12px; transition: transform 0.2s;
}
.cta-btn-light:hover { transform: translateY(-3px); }

/* Footer */
.premium-footer { padding: 3rem 5%; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e2e8f0; background: var(--white); }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #0f172a; font-size: 1.1rem; }
.premium-footer p { color: var(--text-light); font-size: 0.9rem; }

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.05rem; }
    .nav-buttons { display: none; } /* Simplified mobile nav for landing */
    .premium-footer { flex-direction: column; gap: 1rem; text-align: center; }
    .cta-content h2 { font-size: 2.2rem; }
}

/* =========================================
   4. HIGH-END AUTHENTICATION (Login, Bio-Data)
   ========================================= */
.auth-page { background-color: var(--white); margin: 0; height: 100vh; overflow: hidden; }
.auth-split-layout { display: flex; height: 100vh; width: 100vw; }
.auth-banner { flex: 1.2; background: linear-gradient(135deg, #1e3a8a 0%, var(--brand-blue) 100%); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 4rem; color: var(--white); position: relative; overflow: hidden; }
.auth-banner::after { content: ''; position: absolute; top: -20%; left: -10%; width: 70vw; height: 70vw; background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%); border-radius: 50%; pointer-events: none; }
.banner-content { position: relative; z-index: 10; max-width: 550px; text-align: left; }
.banner-content h2 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1px; }
.banner-content p { font-size: 1.15rem; opacity: 0.85; line-height: 1.7; margin-bottom: 3rem; }
.banner-graphic { width: 100%; max-width: 300px; opacity: 0.8; }
.auth-form-container { flex: 1; display: flex; justify-content: center; align-items: center; background-color: var(--white); padding: 2rem; }
.auth-form-wrapper { width: 100%; max-width: 420px; }
.auth-logo img { height: 50px; border-radius: 8px; margin-bottom: 2.5rem; }
.auth-title { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 0.5rem; font-weight: 800; letter-spacing: -0.5px; }
.auth-subtitle { color: var(--text-light); margin-bottom: 2.5rem; font-size: 0.95rem; line-height: 1.6; }
.input-group { margin-bottom: 1.5rem; text-align: left; }
.input-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 1rem 1.2rem; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 1rem; font-family: 'Poppins', sans-serif; background-color: var(--white); outline: none; transition: all 0.2s ease; color: var(--text-dark); }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(45, 142, 255, 0.15); }
.auth-btn, .btn-primary { width: 100%; background-color: var(--brand-blue); color: var(--white); padding: 1.1rem; border: none; border-radius: 12px; font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 4px 15px rgba(45, 142, 255, 0.25); margin-top: 0.5rem; }
.auth-btn:hover, .btn-primary:hover { background-color: var(--brand-blue-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(45, 142, 255, 0.35); }
.hidden { display: none !important; }
#auth-message { margin-top: 1.5rem; font-size: 0.9rem; font-weight: 500; text-align: center; }
.error { color: var(--error-red); }
.success { color: #10b981; }
.auth-footer { margin-top: 3rem; text-align: center; color: #9ca3af; font-size: 0.8rem; }
.auth-footer strong { color: #6b7280; }
@media (max-width: 900px) { .auth-split-layout { flex-direction: column; height: auto; min-height: 100vh; } .auth-banner { display: none; } .auth-form-container { height: 100vh; background-color: var(--bg-gray); } .auth-form-wrapper { background: var(--white); padding: 2.5rem; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); } .auth-page { overflow: auto; } }

/* =========================================
   5. ULTRA-PREMIUM SAAS DASHBOARD 
   ========================================= */
body.dashboard-body { background-color: #f8fafc; margin: 0; padding: 0; display: flex; min-height: 100vh; overflow-x: hidden; }
.sidebar { width: 260px; background-color: #0f172a; color: #94a3b8; display: flex; flex-direction: column; position: fixed; height: 100vh; left: 0; top: 0; z-index: 1000; border-right: 1px solid #1e293b; }
.sidebar-header { padding: 1.5rem 1.5rem 2rem 1.5rem; display: flex; align-items: center; gap: 12px; }
.sidebar-header img { height: 35px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.sidebar-header span { color: var(--white); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.5px; }
.sidebar-nav { list-style: none; padding: 0 1rem; flex-grow: 1; }
.sidebar-nav li { margin-bottom: 0.5rem; }
.sidebar-nav a { display: flex; align-items: center; padding: 0.85rem 1rem; color: #94a3b8; font-weight: 500; font-size: 0.95rem; border-radius: 8px; transition: all 0.2s ease; }
.sidebar-nav a:hover, .sidebar-nav li.active a { background-color: #1e293b; color: var(--white); }
.sidebar-nav li.active a { background-color: rgba(45, 142, 255, 0.15); color: var(--brand-blue); font-weight: 600; }
.sidebar-footer { padding: 1.5rem; border-top: 1px solid #1e293b; }
.logout-btn-sidebar { width: 100%; background-color: transparent; color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); padding: 0.75rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.logout-btn-sidebar:hover { background-color: #ef4444; color: var(--white); }
.main-wrapper { flex-grow: 1; margin-left: 260px; display: flex; flex-direction: column; min-height: 100vh; }
.top-header { height: 70px; background-color: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); display: flex; justify-content: flex-end; align-items: center; padding: 0 2rem; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 100; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-blue), #1e3a8a); color: var(--white); display: flex; justify-content: center; align-items: center; font-weight: 700; font-size: 1rem; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(45, 142, 255, 0.3); border: 2px solid var(--white); }
.dashboard-content { padding: 2.5rem; max-width: 1400px; width: 100%; margin: 0 auto; }
.welcome-banner { background: linear-gradient(135deg, #1e3a8a 0%, var(--brand-blue) 100%); border-radius: 16px; padding: 3rem; color: var(--white); display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; box-shadow: 0 10px 30px rgba(45, 142, 255, 0.25); position: relative; overflow: hidden; }
.welcome-banner::after { content: ''; position: absolute; right: -10%; top: -50%; width: 50%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%); transform: rotate(30deg); pointer-events: none; }
.welcome-text { position: relative; z-index: 10; }
.welcome-text h1 { font-size: 2.2rem; margin-bottom: 0.5rem; font-weight: 800; letter-spacing: -0.5px; }
.welcome-text p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin-bottom: 2rem; max-width: 500px;}
.btn-glass { background-color: var(--white); color: #1e3a8a; padding: 0.9rem 2.5rem; border: none; border-radius: 8px; font-size: 1.05rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn-glass:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.stat-card { background: var(--white); padding: 1.5rem; border-radius: 16px; display: flex; align-items: center; gap: 1.5rem; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.02); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.stat-icon { width: 55px; height: 55px; border-radius: 12px; display: flex; justify-content: center; align-items: center; }
.stat-icon svg { width: 28px; height: 28px; }
.stat-icon.blue { background-color: #eff6ff; color: var(--brand-blue); }
.stat-icon.green { background-color: #f0fdf4; color: #16a34a; }
.stat-icon.purple { background-color: #faf5ff; color: #9333ea; }
.stat-info h4 { color: #64748b; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.5px;}
.stat-info .stat-val { font-size: 1.8rem; font-weight: 800; color: #0f172a; line-height: 1; }
.dashboard-grid { display: grid; grid-template-columns: 2fr 1.2fr; gap: 2rem; align-items: start; }
.dash-card { background: var(--white); padding: 1.5rem; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.dash-card h3 { font-size: 1.1rem; color: #0f172a; font-weight: 700; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 8px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 1rem 0.5rem; text-align: left; border-bottom: 1px solid #f1f5f9; }
.data-table th { color: #64748b; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; padding-bottom: 1rem;}
.data-table tbody tr { transition: background-color 0.2s ease; }
.data-table tbody tr:hover { background-color: #f8fafc; }
.data-table td { font-size: 0.95rem; color: #334155; }
.score-badge { padding: 0.4rem 0.8rem; border-radius: 20px; font-weight: 700; font-size: 0.85rem; display: inline-block; }
.badge-blue { background: #eff6ff; color: var(--brand-blue); }
.badge-green { background: #f0fdf4; color: #16a34a; }
.badge-orange { background: #fff7ed; color: #ea580c; }
.mini-avatar { width: 32px; height: 32px; border-radius: 50%; background-color: #e2e8f0; color: #475569; display: flex; justify-content: center; align-items: center; font-size: 0.75rem; font-weight: 700; margin-right: 10px; }

/* =========================================
   6. GLOBAL MOBILE RESPONSIVENESS & ICONS
   ========================================= */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: #0f172a; }
.mobile-menu-btn svg { width: 28px; height: 28px; }
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.sidebar-overlay.active { display: block; opacity: 1; }

@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .main-wrapper { margin-left: 0; }
    .sidebar { transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
    .sidebar.active { transform: translateX(0); }
    .mobile-menu-btn { display: block; }
    .top-header { justify-content: space-between; } 
}

@media (max-width: 768px) {
    .stats-row { grid-template-columns: 1fr; gap: 1rem; }
    .dashboard-content { padding: 1rem; }
    .welcome-banner { padding: 2rem 1.5rem; }
    .welcome-text h1 { font-size: 1.8rem; }
    .dash-card { padding: 1.2rem; }
}