/* Modern Clean Design System */

:root {
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
}

/* Body and Layout */
body {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
}

/* Enhanced Navbar */
.navbar {
    background: var(--primary-color) !important;
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: white !important;
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.9;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    font-weight: 600;
}

/* Dropdown menus */
.dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

/* Modern Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    background: var(--bg-primary);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Accent Cards */
.card.accent-card {
    border-left: 3px solid var(--primary-color);
}

.card.highlight-card {
    background: var(--bg-secondary);
}

/* Tables */
.table {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    --bs-table-striped-bg: var(--table-stripe);  /* Override Bootstrap's striped color */
    --bs-table-bg: white;  /* Ensure base background is white */
}

.table thead {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.table thead th {
    border-bottom: 2px solid var(--border-color);
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.table tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    opacity: 0.8;
}

.table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-accent {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.btn-accent:hover {
    background: #0284c7;
}

/* Badges */
.badge {
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.badge-success {
    background: #10b981;
    color: white;
}

.badge-warning {
    background: #f59e0b;
    color: white;
}

.badge-info {
    background: var(--accent-color);
    color: white;
}

/* Footer */
footer {
    background: var(--bg-primary);
    color: var(--text-secondary) !important;
    border-top: 1px solid var(--border-color);
}

footer .text-muted {
    color: var(--text-muted) !important;
}

/* Section Headers */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

/* Utility Classes */
.stat-box {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.2s ease;
}

.stat-box:hover {
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Images */
img {
    border-radius: var(--radius-md);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Content spacing */
.content-section {
    margin-bottom: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.125rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Chart containers */
#excitement-chart,
.chart-container {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

/* Smooth transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
