:root {
            --primary: #3a4f76;
            --secondary: #6d9dc5;
            --accent: #c71616ff;
            --light: #f8f9fa;
            --dark: #2c3e50;
        }
        
        body {
            font-family: 'Open Sans', sans-serif;
            color: #333;
            background-color: #f5f7f9;
        }
        
        h1, h2, h3, h4, h5 {
            font-family: 'Merriweather', serif;
            color: var(--dark);
        }
        h5 {
            font-family: 'Merriweather', serif;
            color: var(--light)!important;
        }

        
        .navbar {
            background-color: var(--primary);
            padding: 15px 0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .sidebar {
            background-color: var(--dark);
            color: white;
            min-height: calc(100vh - 56px);
            padding-top: 20px;
        }
        
        .sidebar a {
            color: #ddd;
            padding: 15px 20px;
            text-decoration: none;
            display: block;
            transition: 0.3s;
        }
        
        .sidebar a:hover {
            color: white;
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        .sidebar a.active {
            background-color: var(--accent);
            color: white;
        }
        
        .sidebar i {
            margin-right: 10px;
            width: 20px;
            text-align: center;
        }
        
        .main-content {
            padding: 20px;
        }
        
        .section-title {
            color: var(--primary);
            margin-bottom: 30px;
            position: relative;
            padding-bottom: 15px;
        }
        
        .section-title:after {
            content: '';
            display: block;
            width: 60px;
            height: 3px;
            background: var(--accent);
            position: absolute;
            bottom: 0;
            left: 0;
        }
        
        .card {
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
            border: none;
        }
        
        .card-header {
            background-color: var(--primary)!important;
            color: white;
            border-radius: 10px 10px 0 0 !important;
            padding: 15px 20px;
        }
        
        .btn-primary {
            background-color: var(--accent)!important;
            border: none;
            padding: 10px 20px;
            font-weight: 600;
        }
        
        .btn-primary:hover {
            background-color: var(--dark);
        }
        
        .btn-outline-primary {
            border-color: var(--accent);
            color: var(--primary);
        }
        
        .btn-outline-primary:hover {
            background-color: var(--primary);
            color: white;
        }
        
        .chart-container {
            position: relative;
            height: 300px;
            margin-bottom: 30px;
        }
        
        .stats-card {
            text-align: center;
            padding: 20px;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }
        
        .stats-number {
            font-size: 2.5rem;
            font-weight: bold;
            color: var(--primary);
        }
        
        .stats-label {
            color: #6c757d;
            font-size: 0.9rem;
        }
        
        .filter-bar {
            background-color: white;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }
        
        .viz-card {
            transition: transform 0.3s ease;
        }
        
        .viz-card:hover {
            transform: translateY(-5px);
        }
        
        .export-options {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .table th {
            background-color: var(--primary);
            color: var(--dark);
        }
        
        .tab-pane {
            padding: 20px 0;
        }
        
        .progress {
            height: 20px;
            margin-bottom: 10px;
            border-radius: 5px;
        }
        
        .nav-pills .nav-link.active {
            background-color: var(--accent)!important;
        }
        
        .nav-pills .nav-link {
            color: var(--dark);
        }
        /* Sidebar base styles */
#sidebarMenu {
  background-color: var(--dark);
  color: white;
  min-height: 100vh;
  transition: transform 0.3s ease;
}

/* Links */
#sidebarMenu a {
  color: #ddd;
  padding: 15px 20px;
  display: block;
  text-decoration: none;
}

#sidebarMenu a:hover {
  background-color: rgba(255,255,255,0.1);
  color: #fff;
}

/* --- 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;
  }
}

