/* Dashboard color system: bright, readable accents with calm surfaces. */
.modern-dashboard {
  --dash-ink: #17324d;
  --dash-muted: #607b94;
  --dash-blue: #2878e5;
  --dash-teal: #0d9b91;
  --dash-purple: #7653dc;
  --dash-amber: #df941d;
  color: var(--dash-ink);
  background:
    radial-gradient(ellipse at 8% 0%, rgba(71, 147, 232, .08), transparent 34%),
    radial-gradient(ellipse at 94% 12%, rgba(21, 166, 151, .07), transparent 30%);
  border-radius: 16px;
  padding: 4px;
}

.modern-dashboard-head h2 { color: #123b68; }
.modern-dashboard-head p { color: var(--dash-muted); }

.modern-date-card {
  border-color: #cddff2;
  background: linear-gradient(135deg, #fff 25%, #f0f6ff 100%);
  box-shadow: 0 5px 14px rgba(31, 73, 125, .07);
}
.modern-date-card i { color: var(--dash-blue); }
.modern-date-card small { color: #5d7894; }

.modern-panel {
  position: relative;
  border-color: #cfdeec;
  box-shadow: 0 7px 20px rgba(30, 67, 106, .075);
}
.modern-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 54px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: #4c8fe5;
}
.modern-top-grid > .modern-panel:first-child::before { background: #0d9b91; }
.modern-top-grid > .modern-panel:last-child::before { background: #7653dc; }
.modern-bottom-grid > .modern-panel:nth-child(1)::before { background: #18a66a; }
.modern-bottom-grid > .modern-panel:nth-child(2)::before { background: #2878e5; }
.modern-bottom-grid > .modern-panel:nth-child(3)::before { background: #df941d; }
.modern-panel-head {
  background: linear-gradient(90deg, #f6faff, #fff 78%);
  border-bottom: 1px solid #e7eef6;
}
.modern-panel-head h3 { color: #153f68; }
.modern-view-link { color: #176bd0; }
.modern-view-link:hover { color: #0d4f9e; }

.modern-top-grid > .modern-panel:first-child .modern-panel-head h3 { color: #087b87; }
.modern-top-grid > .modern-panel:last-child .modern-panel-head h3 { color: #6548c7; }
.modern-bottom-grid > .modern-panel:nth-child(1) .modern-panel-head h3 { color: #14855f; }
.modern-bottom-grid > .modern-panel:nth-child(2) .modern-panel-head h3 { color: #236ec3; }
.modern-bottom-grid > .modern-panel:nth-child(3) .modern-panel-head h3 { color: #a06a0a; }

.modern-map {
  border-color: #b9d9e2;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(79, 190, 145, .18), transparent 40%),
    radial-gradient(ellipse at 82% 80%, rgba(65, 132, 230, .15), transparent 46%),
    repeating-linear-gradient(35deg, transparent 0 94px, rgba(255,255,255,.8) 95px 99px, transparent 100px 160px),
    linear-gradient(135deg, #e8f8ef 0%, #dff1f6 52%, #e9efff 100%);
}
.modern-live-legend { border: 1px solid #d9e6f0; color: #35566f; }
.modern-map-label { color: #245879; }

.modern-trip-table th {
  background: #eef5fc;
  color: #315d83;
}
.modern-trip-table th:first-child { border-radius: 5px 0 0 5px; }
.modern-trip-table th:last-child { border-radius: 0 5px 5px 0; }
.modern-trip-table td { color: #294660; }
.modern-trip-table tbody tr:nth-child(even) { background: #fbfdff; }
.modern-trip-table tbody tr:hover { background: #edf6ff; }
.modern-empty-row { color: #69839a; }

.modern-donut-area { background: radial-gradient(circle at center, #fbfdff 0, #fff 68%); }
.modern-donut { filter: drop-shadow(0 5px 9px rgba(26, 66, 108, .1)); }
.modern-donut-area::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40,120,229,.035), transparent 68%);
  pointer-events: none;
}
.modern-status-list { color: #36546e; }
.modern-status-list i { box-shadow: 0 0 0 3px rgba(32, 92, 145, .08); }

.modern-trend {
  border-radius: 10px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 39px, rgba(112,153,190,.12) 40px),
    linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.modern-trend-day i {
  background: linear-gradient(180deg, #45a4f4 0%, #2275df 82%, #155bb7 100%);
  box-shadow: 0 3px 8px rgba(34, 117, 223, .2);
}
.modern-trend-day b { color: #1b4f83; }
.modern-trend-day small { color: #617d99; }

.modern-count {
  border-color: #d5e3f1;
  background: linear-gradient(145deg, #fff, #f6faff);
  transition: transform .16s ease, box-shadow .16s ease;
}
.modern-count:nth-child(3n + 1) { border-top: 2px solid #4b8fe5; }
.modern-count:nth-child(3n + 2) { border-top: 2px solid #27a77b; }
.modern-count:nth-child(3n) { border-top: 2px solid #e1a03a; }
.modern-count:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(35, 83, 130, .1);
}
.modern-count span { color: #617d98; }
.modern-count b { color: #174f84; }
.modern-vendor-row.header { color: #446a8b; font-weight: 700; }
.modern-vendor-row:not(.header) { color: #34546f; }
.modern-vendor-empty { color: #71869a; }

@media (prefers-reduced-motion: reduce) {
  .modern-count { transition: none; }
  .modern-count:hover { transform: none; }
}
