/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f7fafc;
    color: #2d3748;
    font-size: 16px;
    line-height: 1.5;
}

[data-theme="dark"] {
    background-color: #1a202c;
    color: #e2e8f0;
}

/* Page Wrapper */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    font-size: 20px;
    font-weight: 600;
    color: #4299e1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-nav {
    display: flex;
    gap: 20px;
}

    .header-nav .nav-link {
        color: #4a5568;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        transition: color 0.2s ease;
    }

        .header-nav .nav-link:hover {
            color: #4299e1;
        }

.header-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: #4a5568;
    cursor: pointer;
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content-area {
    padding: 20px 0;
}

/* Notifications */
.notifications {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 300px;
    z-index: 1000;
}

.notification {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .notification.info {
        border-left: 4px solid #4299e1;
    }

    .notification.success {
        border-left: 4px solid #48bb78;
    }

    .notification.error {
        border-left: 4px solid #e53e3e;
    }

.notification-close {
    background: none;
    border: none;
    font-size: 14px;
    color: #718096;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 20px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 15px;
}

    .footer-links a {
        color: #4a5568;
        text-decoration: none;
        font-size: 14px;
    }

        .footer-links a:hover {
            color: #4299e1;
        }

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: #ffffff;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

    .hero-actions .btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    .hero-actions .btn-primary {
        background-color: #ffffff;
        color: #4299e1;
        border: none;
    }

        .hero-actions .btn-primary:hover {
            background-color: #edf2f7;
        }

    .hero-actions .btn-outline {
        border-color: #ffffff;
        color: #ffffff;
    }

        .hero-actions .btn-outline:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

/* Features Section */
.features-section {
    padding: 40px 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-5px);
    }

.feature-icon {
    font-size: 32px;
    color: #4299e1;
    margin-bottom: 15px;
}

.feature-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.feature-description {
    font-size: 14px;
    color: #718096;
}

/* Stats Section */
.stats-section {
    padding: 40px 20px;
    background-color: #f7fafc;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
    }

.stat-header {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

    .stat-icon.primary {
        background-color: #4299e1;
        color: #ffffff;
    }

    .stat-icon.success {
        background-color: #48bb78;
        color: #ffffff;
    }

.stat-value {
    font-size: 28px;
    font-weight: 600;
}

.stat-label {
    font-size: 14px;
    color: #718096;
}

/* Chart Container */
.chart-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary {
    background-color: #4299e1;
    color: #ffffff;
    border: none;
}

    .btn-primary:hover {
        background-color: #3182ce;
    }

.btn-outline {
    background-color: transparent;
    border: 1px solid #e2e8f0;
    color: #4a5568;
}

    .btn-outline:hover {
        background-color: #edf2f7;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .header-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

        .header-nav.show {
            display: flex;
        }

    .header-toggle {
        display: block;
    }

    .hero-section {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .notifications {
        width: 100%;
        right: 0;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

        .hero-actions .btn {
            width: 100%;
            max-width: 200px;
        }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin-top: 10px;
    }
}

/* Dark Theme */
[data-theme="dark"] .header,
[data-theme="dark"] .footer,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .chart-container,
[data-theme="dark"] .notification {
    background-color: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .header-nav .nav-link,
[data-theme="dark"] .footer-links a {
    color: #e2e8f0;
}

    [data-theme="dark"] .header-nav .nav-link:hover,
    [data-theme="dark"] .footer-links a:hover {
        color: #4299e1;
    }

[data-theme="dark"] .stats-section {
    background-color: #1a202c;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #2b6cb0 0%, #2c5282 100%);
}

[data-theme="dark"] .hero-actions .btn-primary {
    background-color: #e2e8f0;
    color: #2d3748;
}

[data-theme="dark"] .hero-actions .btn-outline {
    border-color: #e2e8f0;
    color: #e2e8f0;
}

    [data-theme="dark"] .hero-actions .btn-outline:hover {
        background-color: rgba(226, 232, 240, 0.1);
    }

[data-theme="dark"] .btn-outline {
    border-color: #4a5568;
    color: #e2e8f0;
}

    [data-theme="dark"] .btn-outline:hover {
        background-color: #4a5568;
    }

/* Account Views Custom Styles */
.account-card {
    margin-top: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border-radius: 12px;
}
.account-card .card-header {
    border-radius: 12px 12px 0 0;
}
.account-card .btn {
    font-weight: 500;
}
.account-card .form-group label {
    font-weight: 500;
}
.account-card .progress {
    height: 5px;
}
.account-card .progress-bar.bg-danger { background: #dc3545; }
.account-card .progress-bar.bg-warning { background: #ffc107; }
.account-card .progress-bar.bg-info { background: #17a2b8; }
.account-card .progress-bar.bg-success { background: #28a745; }
@media (max-width: 768px) {
    .account-card { margin-top: 20px; }
}
