:root {
    --primary-color: #3a4f76;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

.navbar {
    background-color: var(--primary-color);
}

.navbar-brand {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    margin-left: -10rem;
}

.section-title {
    color: var(--primary-color);
    font-family: 'Merriweather', serif;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.stats-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.filter-bar {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.viz-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.viz-card .card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.nav-pills .nav-link {
    color: var(--primary-color);
    border-radius: 5px;
    margin-right: 0.5rem;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background-color: var(--primary-color);
    color: white;
}

.export-options .btn {
    margin-left: 0.5rem;
}

.comparison-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.comparison-title {
    color: var(--primary-color);
    font-family: 'Merriweather', serif;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.metric-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.trend-indicator {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    margin-left: 0.5rem;
}

.trend-up {
    background-color: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

.trend-down {
    background-color: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
}

.trend-neutral {
    background-color: rgba(108, 117, 125, 0.2);
    color: var(--secondary-color);
}

.custom-date-range {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

/* --- Mobile behavior --- */
@media (max-width: 991.98px) {
  #sidebarMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    transform: translateX(-100%); /* hidden */
    z-index: 1050;
  }

  #sidebarMenu.active {
    transform: translateX(0); /* slide in */
  }

  /* Main content should not shift on mobile */
  #mainContent {
    margin-left: 0;
  }
}

/* --- Desktop behavior --- */
@media (min-width: 992px) {
  #sidebarMenu {
    transform: none; /* always visible */
    position: relative;
  }

  #mainContent {
    margin-left: 0;
  }
}

