@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Serene Blue Color Palette */
    --blue-deep: #1a3a5c;
    --blue-primary: #2c5f8a;
    --blue-light: #4a90b0;
    --blue-soft: #7bb3c4;
    --blue-pale: #b8d4e3;
    --blue-mist: #dceef5;
    --blue-ice: #f0f7fb;
    --white-pure: #ffffff;
    --white-soft: #f8fafc;
    --gray-light: #e2e8f0;
    --gray-soft: #cbd5e1;
    --text-dark: #1e293b;
    --text-soft: #475569;
    --text-light: #64748b;
    
    /* Accent Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 35px rgba(0,0,0,0.12);
    --shadow-blue: 0 8px 20px rgba(44,95,138,0.12);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--blue-deep), var(--blue-primary));
    --gradient-light: linear-gradient(135deg, var(--blue-ice), var(--white-soft));
    --gradient-card: linear-gradient(145deg, var(--white-pure), var(--white-soft));
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 40px;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--blue-ice) 0%, var(--white-soft) 100%);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}
h1 { font-size: 48px; line-height: 1.2; color: var(--blue-deep); }
h2 { font-size: 36px; line-height: 1.3; color: var(--blue-primary); }
h3 { font-size: 24px; line-height: 1.4; color: var(--text-dark); }
h4 { font-size: 20px; line-height: 1.4; }

.text-gradient {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.text-blue { color: var(--blue-primary); }
.text-soft { color: var(--text-soft); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 12px 28px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-2xl);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
}
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}
.btn-secondary {
    background: transparent;
    border: 2px solid var(--blue-primary);
    color: var(--blue-primary);
}
.btn-secondary:hover {
    background: var(--blue-primary);
    color: white;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--blue-pale);
    color: var(--blue-primary);
}
.btn-outline:hover {
    background: var(--blue-pale);
    color: var(--blue-deep);
}
.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: #dc2626;
}

/* Cards */
.card {
    background: var(--white-pure);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(44,95,138,0.08);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(44,95,138,0.15);
}

/* Navbar */
.navbar {
    background: var(--white-pure);
    border-bottom: 1px solid var(--gray-light);
    padding: 16px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: white;
    box-shadow: var(--shadow-sm);
}
.logo-text {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.nav-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 40px;
    transition: 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    background: var(--blue-ice);
    color: var(--blue-primary);
}
.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}
.user-name {
    color: var(--blue-primary);
    font-weight: 500;
}
.logout-btn {
    border: 1px solid var(--blue-pale);
    padding: 8px 20px;
    border-radius: 40px;
    color: var(--blue-primary);
    text-decoration: none;
    transition: 0.2s;
}
.logout-btn:hover {
    background: var(--blue-pale);
    color: var(--blue-deep);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.stat-card {
    background: var(--white-pure);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--blue-primary);
    transition: all 0.3s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--blue-deep);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}
.feature-card {
    background: var(--white-pure);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.feature-card:hover::before {
    transform: scaleX(1);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}
.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--blue-deep);
}
.feature-card p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
}
.feature-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue-primary);
    margin-top: 16px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    background: var(--white-pure);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}
th {
    background: var(--blue-ice);
    color: var(--blue-deep);
    font-weight: 600;
}
tr:hover {
    background: rgba(44,95,138,0.03);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--blue-deep);
    font-size: 14px;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s;
    background: var(--white-pure);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(44,95,138,0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: var(--white-pure);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}
.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-body {
    padding: 24px;
}
.modal-footer {
    padding: 24px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}
.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}
.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--info);
}

/* Badges */
.badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}
.badge-success {
    background: #d1fae5;
    color: #065f46;
}
.badge-warning {
    background: #fed7aa;
    color: #92400e;
}
.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}
.badge-info {
    background: #dbeafe;
    color: #1e40af;
}
.badge-blue {
    background: var(--blue-ice);
    color: var(--blue-primary);
}

/* Progress Bar */
.progress-container {
    background: var(--gray-light);
    border-radius: 50px;
    height: 8px;
    overflow: hidden;
}
.progress-bar {
    background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
    height: 100%;
    border-radius: 50px;
    transition: width 0.5s ease;
}

/* Section Title */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 24px;
    border-left: 4px solid var(--blue-primary);
    padding-left: 16px;
}

/* Footer */
.footer {
    background: var(--white-pure);
    color: var(--text-soft);
    padding: 48px 32px;
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid var(--gray-light);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--blue-ice) 0%, var(--white-pure) 100%);
    border-radius: var(--radius-xl);
    padding: 48px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(44,95,138,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

/* Login Container */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-ice) 0%, var(--white-soft) 100%);
}
.login-card {
    max-width: 480px;
    width: 90%;
    background: var(--white-pure);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.login-header {
    background: var(--gradient-primary);
    padding: 40px;
    text-align: center;
    color: white;
}
.login-logo {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    font-weight: 800;
    color: var(--blue-primary);
}
.login-body {
    padding: 40px;
}
.input-group {
    position: relative;
    margin-bottom: 20px;
}
.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue-primary);
}
.input-group input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: all 0.3s;
}
.input-group input:focus {
    outline: none;
    border-color: var(--blue-primary);
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }
    .nav-links {
        display: none;
    }
    .container {
        padding: 20px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 32px;
    }
    h2 {
        font-size: 28px;
    }
    .hero-section {
        padding: 30px;
        text-align: center;
    }
    .section-title {
        font-size: 20px;
    }
}
@media (max-width: 480px) {
    .stat-number {
        font-size: 28px;
    }
    .login-body {
        padding: 25px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.slide-in {
    animation: slideIn 0.3s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--blue-ice);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--blue-pale);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--blue-light);
}