@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

* {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  background: #f3f4f6;
  color: #111827;
}

/* SHELL */
.report-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: 24px;
}

/* TOPBAR */
.topbar-root {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-mark {
  height: 28px;
  width: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-weight: 600;
  font-size: 13px;
}

.logo-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.logo-subtitle {
  font-size: 11px;
  color: #6b7280;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.user-avatar {
  height: 22px;
  width: 22px;
  border-radius: 999px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #111827;
}

.user-name {
  font-size: 12px;
  color: #4b5563;
}

/* FILTER BAR */
.filter-section {
  position: sticky;
  top: 40px;
  z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.filter-section > div {
  padding-top: 8px;
  padding-bottom: 8px;
}

.page-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-top: 2px;
}

.filter-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 4px;
}

/* INPUTS */
.filter-select,
.filter-input-plain {
  width: 100%;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s;
}

/* Date picker icon */
input[type="date"].filter-input-plain::-webkit-calendar-picker-indicator {
  opacity: 1;
  cursor: pointer;
}

.filter-select,
.filter-input-plain {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.filter-select:focus,
.filter-input-plain:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
  background: #ffffff;
}

/* BUTTONS */
.btn-primary {
  background: #111827;
  color: #f9fafb;
  font-weight: 500;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #111827;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover {
  background: #020617;
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.3);
}

.btn-secondary {
  background: #ffffff;
  color: #111827;
  font-weight: 500;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.btn-secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

/* REPORT WRAPPER */
.report-page {
  max-width: 1400px;
  margin: 12px auto 0;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
}

/* HEADER CARD (Glass effect but light) */
.glass-effect {
  background: radial-gradient(
      circle at 0 0,
      rgba(59, 130, 246, 0.08),
      transparent 55%
    ),
    radial-gradient(circle at 100% 0, rgba(52, 211, 153, 0.06), transparent 50%),
    #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.section-kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 2px;
}

/* FIXED: Header title & description visibility */
.glass-effect h2 {
  color: #111827 !important;
}

.glass-effect p {
  color: #6b7280 !important;
}

/* BADGES */
.metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.indicator-dot {
  height: 7px;
  width: 7px;
  border-radius: 999px;
  background: #22c55e;
}

/* CARDS */
.card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.08s ease;
}

.card:hover {
  border-color: #d1d5db;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 6px;
}

.meta-value {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background: radial-gradient(circle at 0 0, #3b82f6, transparent 55%);
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 26px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 3px;
}

.stat-unit {
  font-size: 13px;
  color: #6b7280;
}

.section-header {
  position: relative;
  padding-left: 14px;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
}

.section-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: currentColor;
}

.chart-container {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.35s ease-out;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

table thead th {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
}

table tbody tr {
  transition: background 0.12s ease;
}

table tbody tr:hover {
  background: #f3f4f6;
}

table td,
table th {
  border-bottom: 1px solid #e5e7eb;
}

.legend-dot {
  height: 8px;
  width: 8px;
  border-radius: 999px;
}

.legend-blue {
  background: #3b82f6;
}

.legend-green {
  background: #22c55e;
}

@media print {
  body {
    background: #ffffff;
    color: #111827;
  }
  .topbar-root,
  .filter-section {
    display: none;
  }
  .report-page {
    border: none;
    box-shadow: none;
    margin: 0;
    border-radius: 0;
  }
}
