/* =====================================================
   MODERN DESIGN SYSTEM - ENTIRE APPLICATION
   ===================================================== */

:root {
    --primary: #3a5dfa;
    --primary-dark: #2d4ad4;
    --secondary: #2c2f36;
    --success: #3ecf8e;
    --info: #4fb9e8;
    --warning: #f7c94b;
    --danger: #ef5b5b;
    --light: #f4f5f7;
    --dark: #1a1c20;
    --text-primary: #1a1c20;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

/* Global Improvements */
body {
    background: #f8fafc;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.5px;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
    transition: all 0.2s ease;
}

/* =====================================================
   AUTH PAGES (Login, Register, Waitlist, etc.)
   ===================================================== */

.auth-page {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(58, 93, 250, 0.1);
    filter: blur(60px);
    animation: float 8s ease-in-out infinite;
}

.auth-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.05);
}

.auth-box h1 {
    background: linear-gradient(135deg, #3a5dfa 0%, #4fb9e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f4f8;
    list-style: none;
    padding: 0;
}

.auth-tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.auth-tab-btn:hover,
.auth-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-success-box {
    background: linear-gradient(135deg, #f6fdfa 0%, #ecfdf5 100%);
    border-left: 4px solid var(--success);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    color: #0d3423;
}

.auth-error-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid var(--danger);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    color: #7f1d1d;
}

/* =====================================================
   DASHBOARD & MAIN APP
   ===================================================== */

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background: #fff;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(58, 93, 250, 0.2);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fc 0%, #f3f4f6 100%);
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
}

.card-header h5 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control,
.form-select,
textarea {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #fff;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 93, 250, 0.1);
    background: #fff;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3a5dfa 0%, #4fb9e8 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(58, 93, 250, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 93, 250, 0.4);
    color: #fff;
}

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

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

.btn-success {
    background: linear-gradient(135deg, #3ecf8e 0%, #2baf74 100%);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-2px);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #ef5b5b 0%, #ea2d2d 100%);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    background: #e5e7eb;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #d1d5db;
    color: var(--text-primary);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
}

/* =====================================================
   ADMIN PAGES
   ===================================================== */

.admin-page {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.admin-sidebar {
    width: 260px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    min-height: 100vh;
    position: sticky;
    top: 0;
    border-right: 1px solid var(--border-color);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.admin-nav-link:hover {
    background: #f8fafc;
    color: var(--primary);
    border-left-color: var(--primary);
    text-decoration: none;
}

.admin-nav-link.active {
    background: linear-gradient(90deg, rgba(58, 93, 250, 0.1) 0%, transparent 100%);
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.admin-content {
    flex: 1;
    overflow-x: hidden;
}

.admin-navbar {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(58, 93, 250, 0.1);
}

.admin-navbar .navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.admin-header h1 {
    font-size: 1.75rem;
    margin: 0;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.admin-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.admin-stat-card h3 {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.admin-stat-card .value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

/* =====================================================
   ALERTS & MESSAGES
   ===================================================== */

.alert {
    border-radius: 8px;
    padding: 1rem 1.5rem;
    border-left: 4px solid;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #f6fdfa 0%, #ecfdf5 100%);
    border-left-color: var(--success);
    color: #0d3423;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left-color: var(--danger);
    color: #7f1d1d;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left-color: var(--warning);
    color: #715405;
}

.alert-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left-color: var(--info);
    color: #0c455f;
}

/* =====================================================
   TABLES
   ===================================================== */

.table {
    background: #fff;
    border-collapse: collapse;
}

.table thead {
    background: linear-gradient(135deg, #f8f9fc 0%, #f3f4f6 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.table thead th {
    font-weight: 600;
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f8fafc;
    transition: all 0.2s ease;
}

/* =====================================================
   BADGES
   ===================================================== */

.badge {
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, #3a5dfa 0%, #4fb9e8 100%);
    color: #fff;
}

.badge-success {
    background: linear-gradient(135deg, #3ecf8e 0%, #2baf74 100%);
    color: #fff;
}

.badge-danger {
    background: linear-gradient(135deg, #ef5b5b 0%, #ea2d2d 100%);
    color: #fff;
}

.badge-warning {
    background: linear-gradient(135deg, #f7c94b 0%, #f5ba1a 100%);
    color: #1a1c20;
}

/* =====================================================
   HOMEPAGE HERO & SECTIONS
   ===================================================== */

.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(58, 93, 250, 0.1);
    filter: blur(60px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.stats-section {
    margin-top: -80px;
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(58, 93, 250, 0.15);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.stat-card .stat-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.features-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    transition: all 0.3s ease;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    background: linear-gradient(135deg, #f8f9fc 0%, #fff 100%);
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(58, 93, 250, 0.1);
    border-color: var(--primary);
}

.feature-icon {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3a5dfa 0%, #4fb9e8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(58, 93, 250, 0.2);
}

.cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #9ca3af;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(58, 93, 250, 0.1);
}

.home-navbar {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .stat-card { padding: 2rem 1.5rem; }
    .feature-card { padding: 2rem 1.5rem; }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .admin-page {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        min-height: auto;
        position: static;
    }
    
    .admin-stat-card {
        padding: 1.5rem;
    }
    
    .auth-box {
        padding: 2rem 1.5rem;
    }
    
    .card-body,
    .card-header {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .btn { padding: 0.5rem 1rem; }
    .auth-box { padding: 1.5rem 1rem; }
}

/* =====================================================
   UTILITIES
   ===================================================== */

.text-gradient {
    background: linear-gradient(135deg, #3a5dfa 0%, #4fb9e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }

.border-light { border-color: var(--border-color); }

