/*
 * SMARTCCTV - Vehicle Counting Theme
 * Navbar & Menu styling to match the counting/toll theme
 */

:root {
  --counting-primary: #e74c3c;
  --counting-primary-dark: #c0392b;
  --counting-primary-light: rgba(231, 76, 60, 0.12);
  --counting-primary-hover: rgba(231, 76, 60, 0.08);
}

/* ===== TOP HEADER (Navbar) ===== */
.top-header .navbar {
  background: linear-gradient(135deg, #ffffff 0%, #fff8f8 50%, #fff5f5 100%) !important;
  border-bottom: 1px solid rgba(231, 76, 60, 0.2) !important;
  box-shadow: 0 2px 12px rgba(231, 76, 60, 0.06) !important;
}

.top-header .navbar .logo-header {
  border-right-color: rgba(231, 76, 60, 0.2) !important;
  border-left-color: rgba(231, 76, 60, 0.2) !important;
}

.top-header .btn-toggle a {
  background: linear-gradient(135deg, var(--counting-primary), var(--counting-primary-dark)) !important;
  color: #fff !important;
  border: none !important;
}

.top-header .btn-toggle a:hover,
.top-header .btn-toggle a:focus {
  background: linear-gradient(135deg, var(--counting-primary-dark), var(--counting-primary)) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4) !important;
}

.top-header .nav-right-links .nav-link {
  color: #2c3e50 !important;
}

.top-header .nav-right-links .nav-link:hover,
.top-header .nav-right-links .nav-link:focus {
  color: var(--counting-primary) !important;
}

/* User dropdown */
.top-header .dropdown-user {
  border-top: 1px solid rgba(231, 76, 60, 0.15) !important;
}

.top-header .dropdown-user .dropdown-item:hover {
  background-color: var(--counting-primary-light) !important;
  color: var(--counting-primary-dark) !important;
}

.top-header .dropdown-user .badge.bg-primary {
  background: linear-gradient(135deg, var(--counting-primary), var(--counting-primary-dark)) !important;
}

/* ===== PRIMARY MENU (Sidebar / Offcanvas) ===== */
.primary-menu .navbar {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%) !important;
  border-bottom: 1px solid rgba(231, 76, 60, 0.15) !important;
  box-shadow: 0 2px 12px rgba(231, 76, 60, 0.05) !important;
}

/* Offcanvas sidebar (mobile) */
.primary-menu .offcanvas {
  background: linear-gradient(180deg, #ffffff 0%, #fffbfb 100%) !important;
  border-right: 1px solid rgba(231, 76, 60, 0.15) !important;
}

.primary-menu .offcanvas-header {
  border-bottom: 1px solid rgba(231, 76, 60, 0.1) !important;
  background: linear-gradient(135deg, var(--counting-primary-light) 0%, transparent 100%) !important;
}

.primary-menu .offcanvas-header .logo-text {
  color: var(--counting-primary-dark) !important;
}

.primary-menu .offcanvas-header .text-muted {
  color: var(--counting-primary) !important;
  opacity: 0.9;
}

.primary-menu .primaery-menu-close {
  background: var(--counting-primary-light) !important;
  color: var(--counting-primary) !important;
}

.primary-menu .primaery-menu-close:hover {
  background: var(--counting-primary) !important;
  color: #fff !important;
}

/* Menu nav links */
.primary-menu .navbar .navbar-nav a.nav-link {
  color: #2c3e50 !important;
  border-bottom-color: rgba(231, 76, 60, 0.1) !important;
  transition: all 0.25s ease;
}

.primary-menu .navbar .navbar-nav a.nav-link:hover {
  color: var(--counting-primary-dark) !important;
  background: var(--counting-primary-hover) !important;
  border-left: 2px solid var(--counting-primary);
}

.primary-menu .navbar .navbar-nav a.nav-link:active,
.primary-menu .navbar .navbar-nav a.nav-link:focus {
  color: #fff !important;
  background: linear-gradient(135deg, var(--counting-primary), var(--counting-primary-dark)) !important;
}

.primary-menu .navbar .navbar-nav a.nav-link.active,
.primary-menu .navbar .navbar-nav a.nav-link.active:hover {
  color: #fff !important;
  background: linear-gradient(135deg, var(--counting-primary), var(--counting-primary-dark)) !important;
  border-left: 2px solid rgba(255,255,255,0.5);
  font-weight: 600;
}

/* Icons visible when parent nav-link is active */
.primary-menu .navbar .navbar-nav a.nav-link.active .parent-icon i,
.primary-menu .navbar .navbar-nav a.nav-link.active .parent-icon .text-primary,
.primary-menu .navbar .navbar-nav a.nav-link.active .parent-icon .text-danger,
.primary-menu .navbar .navbar-nav a.nav-link.active .dropy-icon i,
.primary-menu .navbar .navbar-nav a.nav-link.active .menu-title {
  color: #fff !important;
}

.primary-menu .navbar .navbar-nav a.nav-link.active .parent-icon {
  background: rgba(255,255,255,0.25) !important;
}

/* Parent icons - theme colors */
.primary-menu .navbar .parent-icon.bg-light-primary {
  background: var(--counting-primary-light) !important;
}

.primary-menu .navbar .parent-icon.bg-light-primary i {
  color: var(--counting-primary) !important;
}

.primary-menu .navbar .parent-icon.bg-light-danger {
  background: rgba(231, 76, 60, 0.15) !important;
}

.primary-menu .navbar .parent-icon.bg-light-danger i {
  color: var(--counting-primary) !important;
}

/* Dropdown menu */
.primary-menu .navbar .dropdown-menu {
  border: 1px solid rgba(231, 76, 60, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  padding: 0.5rem !important;
}

.primary-menu .navbar .dropdown-menu .dropdown-item {
  border-radius: 8px !important;
  padding: 0.5rem 1rem !important;
  transition: all 0.2s ease;
}

.primary-menu .navbar .dropdown-menu .dropdown-item:hover {
  background: var(--counting-primary-hover) !important;
  color: var(--counting-primary-dark) !important;
}

.primary-menu .navbar .dropdown-menu .dropdown-item.active {
  background: linear-gradient(135deg, var(--counting-primary), var(--counting-primary-dark)) !important;
  color: #fff !important;
}

.primary-menu .navbar .dropdown-menu .dropdown-item.active i,
.primary-menu .navbar .dropdown-menu .dropdown-item.active .text-primary,
.primary-menu .navbar .dropdown-menu .dropdown-item.active .text-success,
.primary-menu .navbar .dropdown-menu .dropdown-item.active .text-danger {
  color: #fff !important;
}

/* Icon colors in dropdown */
.primary-menu .navbar .dropdown-menu .dropdown-item .text-primary {
  color: var(--counting-primary) !important;
}

.primary-menu .navbar .dropdown-menu .dropdown-item .text-success {
  color: #27ae60 !important;
}

.primary-menu .navbar .dropdown-menu .dropdown-item .text-danger {
  color: var(--counting-primary) !important;
}

/* Refresh button */
.primary-menu .navbar .btn-info {
  background: linear-gradient(135deg, var(--counting-primary), var(--counting-primary-dark)) !important;
  border: none !important;
}

.primary-menu .navbar .btn-info:hover {
  background: linear-gradient(135deg, var(--counting-primary-dark), var(--counting-primary)) !important;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4) !important;
}

/* ===== CARDS - Elegant subtle accent ===== */
.card.border-top.border-4.border-danger,
.card.border-top.border-4.border-info,
.card.border-top.border-4.border-primary,
.card.border-top.border-danger,
.card.border-top.border-info,
.card.border-top.border-primary {
  border-top-width: 2px !important;
  border-top-color: rgba(231, 76, 60, 0.3) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.card.border-top.border-4.border-danger:hover,
.card.border-top.border-4.border-info:hover,
.card.border-top.border-4.border-primary:hover,
.card.border-top.border-danger:hover,
.card.border-top.border-info:hover,
.card.border-top.border-primary:hover {
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.06) !important;
  border-top-color: rgba(231, 76, 60, 0.45) !important;
}

.card.border-top.border-4.border-info,
.card.border-top.border-info {
  border-top-color: rgba(13, 110, 253, 0.3) !important;
}

.card.border-top.border-4.border-info:hover,
.card.border-top.border-info:hover {
  border-top-color: rgba(13, 110, 253, 0.45) !important;
  box-shadow: 0 4px 20px rgba(13, 110, 253, 0.06) !important;
}

.card.border-top.border-4.border-primary,
.card.border-top.border-primary {
  border-top-color: rgba(13, 110, 253, 0.3) !important;
}

.card.border-top.border-4.border-primary:hover,
.card.border-top.border-primary:hover {
  border-top-color: rgba(13, 110, 253, 0.45) !important;
  box-shadow: 0 4px 20px rgba(13, 110, 253, 0.06) !important;
}

/* Override thick border-4 on cards - elegant 2px top accent only */
.card.border-top.border-4 {
  border-width: 1px !important;
  border-top-width: 2px !important;
}

/* Responsive: thinner accent on mobile */
@media (max-width: 767.98px) {
  .card.border-top.border-4,
  .card.border-top {
    border-top-width: 1px !important;
  }
}

/* ===== STREAM PLACEHOLDER & OFFLINE (realtime, livestream, maps) ===== */
.stream-placeholder,
.stream-offline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.75rem;
  text-align: center;
  z-index: 2;
  box-sizing: border-box;
}

.stream-placeholder-icon,
.stream-offline-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.12), rgba(231, 76, 60, 0.05));
}

.stream-placeholder-icon .material-icons-outlined,
.stream-offline-icon .material-icons-outlined {
  font-size: 32px;
  color: rgba(231, 76, 60, 0.5);
}

.stream-offline .stream-offline-icon {
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.15), rgba(108, 117, 125, 0.05));
}

.stream-offline .stream-offline-icon .material-icons-outlined {
  color: rgba(108, 117, 125, 0.7) !important;
}

.stream-placeholder-title,
.stream-offline-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.35rem;
}

.stream-placeholder-desc,
.stream-offline-desc {
  font-size: 0.8rem;
  color: #6c757d;
  max-width: 260px;
  padding: 0 0.5rem;
}

@media (min-width: 576px) {
  .stream-placeholder,
  .stream-offline {
    padding: 2rem 2.5rem;
  }
  .stream-placeholder-icon,
  .stream-offline-icon {
    width: 80px;
    height: 80px;
  }
  .stream-placeholder-icon .material-icons-outlined,
  .stream-offline-icon .material-icons-outlined {
    font-size: 40px;
  }
  .stream-placeholder-title,
  .stream-offline-title {
    font-size: 1rem;
  }
  .stream-placeholder-desc,
  .stream-offline-desc {
    font-size: 0.875rem;
    max-width: 280px;
    padding: 0 1rem;
  }
}

/* Stream container - responsive (livestream, maps) */
.stream-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
  aspect-ratio: 16 / 9;
  min-height: 200px;
}

@media (min-width: 576px) {
  .stream-container {
    min-height: 280px;
  }
}

@media (min-width: 768px) {
  .stream-container {
    min-height: 360px;
  }
}

@media (min-width: 992px) {
  .stream-container {
    min-height: 420px;
  }
}

/* ===== BODY & PAGE - Elegant theme like login ===== */
body {
  background: linear-gradient(180deg, #f0f2f5 0%, #fff8f8 30%, #f5f5f5 100%) !important;
}

/* ===== PAGE CONTENT - Elegant background like login ===== */
.main-wrapper {
  background: transparent !important;
  min-height: calc(100vh - 130px);
}

.main-wrapper .main-content {
  background: transparent !important;
  padding: 1.5rem 1.5rem 2rem;
}

@media (min-width: 1200px) {
  .main-wrapper .main-content {
    padding: 2rem 2rem 2.5rem;
  }
}

/* ===== DASHBOARD - Professional & Elegant ===== */
.dashboard-header,
.dashboard-card,
.card-title-modern,
.dashboard-filter-bar {
  font-family: 'Plus Jakarta Sans', 'Noto Sans', sans-serif;
}

.dashboard-header {
  padding: 0.5rem 0;
}

.dashboard-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1d21 !important;
  letter-spacing: -0.02em;
}

.dashboard-title .material-icons-outlined {
  font-size: 1.5rem;
  color: var(--counting-primary) !important;
  vertical-align: middle;
}

.dashboard-subtitle {
  font-size: 0.9rem;
  color: #6c757d !important;
}

.dashboard-filter-bar {
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(231, 76, 60, 0.12);
}

.dashboard-filter-bar .filter-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #495057;
}

.dashboard-filter-bar .filter-label .material-icons-outlined {
  font-size: 1.1rem;
  color: var(--counting-primary);
}

.dashboard-filter-select {
  min-width: 200px;
  border-radius: 8px;
  border-color: rgba(231, 76, 60, 0.2);
}

/* Dashboard Cards */
.dashboard-card {
  border: 1px solid rgba(0,0,0,0.06) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  overflow: hidden;
}

.dashboard-card:hover {
  box-shadow: 0 8px 30px rgba(231, 76, 60, 0.08) !important;
}

.dashboard-card-pie {
  border-top: 3px solid var(--counting-primary) !important;
}

.dashboard-card-chart {
  border-top: 3px solid #3498db !important;
}

/* Bar chart - tinggi penuh dalam card */
.dashboard-card-chart .card-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dashboard-card-chart .card-body > .d-flex {
  flex-shrink: 0;
}

.dashboard-card-chart .bar-chart-wrapper {
  flex: 1;
  min-height: 580px;
}

.dashboard-card-table {
  border-top: 3px solid #27ae60 !important;
}

.card-title-modern {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title-modern .material-icons-outlined {
  font-size: 1.25rem;
  color: var(--counting-primary) !important;
}

.btn-icon-sm {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #6c757d;
  transition: all 0.2s ease;
}

.btn-icon-sm:hover {
  background: var(--counting-primary-light) !important;
  color: var(--counting-primary) !important;
}

.dashboard-clock {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c757d;
}

.dashboard-total-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1d21 !important;
  font-variant-numeric: tabular-nums;
}

/* Vehicle Stats Grid */
.vehicle-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vehicle-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.vehicle-stat-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.vehicle-stat-car {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.08), rgba(39, 174, 96, 0.04));
  border: 1px solid rgba(39, 174, 96, 0.2);
}

.vehicle-stat-car .stat-icon { color: #27ae60 !important; }
.vehicle-stat-car .stat-value { color: #27ae60; font-weight: 700; }

.vehicle-stat-bus {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.08), rgba(231, 76, 60, 0.04));
  border: 1px solid rgba(231, 76, 60, 0.2);
}

.vehicle-stat-bus .stat-icon { color: var(--counting-primary) !important; }
.vehicle-stat-bus .stat-value { color: var(--counting-primary-dark); font-weight: 700; }

.vehicle-stat-truck {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.08), rgba(52, 152, 219, 0.04));
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.vehicle-stat-truck .stat-icon { color: #3498db !important; }
.vehicle-stat-truck .stat-value { color: #2980b9; font-weight: 700; }

.stat-value {
  font-variant-numeric: tabular-nums;
  font-size: 1.1rem;
}

/* Dashboard Table Toolbar */
.dashboard-table-toolbar {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-table-toolbar .btn-modern {
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-table-toolbar .btn-modern .material-icons-outlined {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.dashboard-search-wrap {
  position: relative;
  min-width: 120px;
  flex: 1 1 180px;
}

.dashboard-search-wrap .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #adb5bd;
  pointer-events: none;
}

.dashboard-search-wrap .form-control {
  padding-left: 36px;
  border-radius: 8px;
  border-color: rgba(0,0,0,0.1);
}

.dashboard-search-wrap .form-control:focus {
  border-color: rgba(231, 76, 60, 0.4);
  box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.1);
}

/* Dashboard table toolbar - responsive */
@media (max-width: 575.98px) {
  .dashboard-table-toolbar {
    width: 100%;
    flex-wrap: wrap;
  }
  .dashboard-table-toolbar .btn-modern {
    flex: 1 1 auto;
    min-width: 44px;
    padding: 0.4rem 0.5rem;
  }
  .dashboard-search-wrap {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .dashboard-table-header {
    gap: 0.75rem;
  }
}

/* Dashboard responsive */
@media (max-width: 767.98px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .dashboard-filter-bar {
    width: 100%;
  }
  .dashboard-filter-select {
    min-width: 100%;
  }
  .dashboard-title {
    font-size: 1.25rem;
  }
}

/* ===== REPORTING PAGE - Responsive & Professional ===== */
.reporting-page .dashboard-header {
  font-family: 'Plus Jakarta Sans', 'Noto Sans', sans-serif;
}

.reporting-filter-card-inner {
  border-top: 3px solid #3498db !important;
}

.reporting-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
  align-items: end;
}

@media (min-width: 576px) {
  .reporting-filter-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .reporting-filter-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 1.5rem;
  }
}

@media (min-width: 992px) {
  .reporting-filter-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .reporting-filter-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.reporting-filter-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.reporting-filter-item .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.35rem;
  display: block;
}

.reporting-filter-item .form-select,
.reporting-filter-item .form-control {
  width: 100%;
  border-radius: 8px;
}

.reporting-filter-apply {
  grid-column: 1 / -1;
  align-self: end;
}

@media (min-width: 768px) {
  .reporting-filter-apply {
    grid-column: span 1;
    align-self: end;
  }
  .reporting-filter-apply .btn {
    min-height: 38px;
  }
}

.reporting-chart-pie {
  min-height: 280px;
}

@media (min-width: 768px) {
  .reporting-chart-pie {
    min-height: 325px;
  }
}

.reporting-chart-line {
  min-height: 320px;
}

@media (min-width: 768px) {
  .reporting-chart-line {
    min-height: 400px;
  }
}

@media (min-width: 992px) {
  .reporting-chart-line {
    height: calc(100% - 50px);
    min-height: 380px;
  }
}

.reporting-page .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.reporting-page #vehicleTable {
  min-width: 800px;
}

.reporting-page .dataTables_wrapper {
  overflow-x: auto;
}

.reporting-page .btn-modern {
  border-radius: 8px;
  font-weight: 500;
}

@media (max-width: 767.98px) {
  .reporting-page .dashboard-title {
    font-size: 1.25rem;
  }
}

/* Buttons - theme consistent */
.btn-danger, .btn.btn-danger {
  background: linear-gradient(135deg, var(--counting-primary), var(--counting-primary-dark)) !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.25);
}

.btn-danger:hover, .btn.btn-danger:hover {
  background: linear-gradient(135deg, var(--counting-primary-dark), var(--counting-primary)) !important;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
  transform: translateY(-1px);
}

.btn-outline-danger:hover {
  background: var(--counting-primary-light) !important;
  border-color: var(--counting-primary) !important;
  color: var(--counting-primary-dark) !important;
}

.btn-info {
  background: linear-gradient(135deg, #3498db, #2980b9) !important;
  border: none !important;
}

/* Form controls - subtle theme accent */
.form-select:focus, .form-control:focus {
  border-color: rgba(231, 76, 60, 0.4) !important;
  box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.15) !important;
}

.form-select, .form-control {
  border-radius: 8px !important;
  transition: all 0.2s ease;
}

/* Tables - elegant styling */
.table thead th {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.08), rgba(192, 57, 43, 0.05)) !important;
  color: var(--counting-primary-dark) !important;
  font-weight: 600 !important;
  border-bottom: 2px solid rgba(231, 76, 60, 0.2) !important;
  padding: 0.75rem 1rem !important;
}

.table tbody tr:hover {
  background: rgba(231, 76, 60, 0.03) !important;
}

.table-secondary.group-header-row {
  background: linear-gradient(90deg, rgba(231, 76, 60, 0.06), transparent) !important;
}

/* Badges */
.badge.bg-danger, .badge.bg-primary {
  background: linear-gradient(135deg, var(--counting-primary), var(--counting-primary-dark)) !important;
}

.badge.bg-success { background: linear-gradient(135deg, #27ae60, #219a52) !important; }
.badge.bg-info { background: linear-gradient(135deg, #3498db, #2980b9) !important; }

/* Dropdown & modal headers */
.modal-header.bg-gradient-danger,
.modal-header.bg-danger {
  background: linear-gradient(135deg, var(--counting-primary), var(--counting-primary-dark)) !important;
  border: none !important;
}

/* Card dropdown options - theme hover */
.dropdown-toggle.options:hover,
.dropdown-toggle.options:focus {
  color: var(--counting-primary) !important;
}

.dropdown-menu .dropdown-item:hover {
  background: var(--counting-primary-light) !important;
  color: var(--counting-primary-dark) !important;
}

/* Page titles / card titles - subtle theme */
.card-title, .fw-bold.h5, h5.fw-bold {
  color: #2c3e50 !important;
}

.card-title .material-icons-outlined,
h5 .material-icons-outlined {
  color: var(--counting-primary) !important;
}

/* Desktop: horizontal menu bar */
@media screen and (min-width: 1366px) {
  .primary-menu .navbar {
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%) !important;
    border-bottom: 1px solid rgba(231, 76, 60, 0.2) !important;
  }

  .primary-menu .navbar .navbar-nav a.nav-link {
    border-color: rgba(231, 76, 60, 0.2) !important;
  }

  .primary-menu .navbar .navbar-nav a.nav-link:hover {
    border-color: var(--counting-primary) !important;
    background: var(--counting-primary-hover) !important;
  }

  .primary-menu .navbar .navbar-nav a.nav-link.active,
  .primary-menu .navbar .navbar-nav a.nav-link.active:hover {
    border-color: var(--counting-primary) !important;
  }
}
