@font-face {
  font-family: 'Better Together';
  src: url('assets/fonts/BetterTogether-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Better Together';
  src: url('assets/fonts/BetterTogether-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Better Together';
  src: url('assets/fonts/BetterTogether-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Better Together';
  src: url('assets/fonts/BetterTogether-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

:root {
  --bg-color: #f1f5f9;
  --panel-bg: rgba(255, 255, 255, 0.45);
  --panel-border: rgba(37, 99, 235, 0.12);
  --panel-border-hover: rgba(37, 99, 235, 0.25);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.15);
  --primary-hover: #1d4ed8;

  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.15);

  --success: #00a99d;
  --success-glow: rgba(0, 169, 157, 0.15);

  --warning: #d97706;
  --danger: #dc2626;
  --accent-pink: #db2777;

  --font-main: 'Better Together', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 20px;
  --border-radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

input,
button,
select,
textarea {
  font-family: inherit;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  display: block;
  position: relative;
  overflow-x: hidden;
  /* Ambient background glow */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 45%);
}

/* Animated Liquid Background Blobs */
.liquid-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: multiply;
}

#auth-overlay .liquid-blob {
  z-index: 0;
}

.auth-wrapper {
  position: relative;
  z-index: 1;
}

.blob-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.65) 0%, rgba(37, 99, 235, 0.25) 100%);
  top: -10%;
  left: -10%;
  animation: float-blob-1 25s infinite alternate ease-in-out;
}

.blob-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.65) 0%, rgba(139, 92, 246, 0.25) 100%);
  bottom: -15%;
  right: -5%;
  animation: float-blob-2 30s infinite alternate ease-in-out;
}

.blob-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.55) 0%, rgba(239, 68, 68, 0.15) 100%);
  top: 40%;
  left: 50%;
  animation: float-blob-3 22s infinite alternate ease-in-out;
}

@keyframes float-blob-1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(80px, 60px) scale(1.1);
  }

  100% {
    transform: translate(-40px, 120px) scale(0.95);
  }
}

@keyframes float-blob-2 {
  0% {
    transform: translate(0, 0) scale(0.9);
  }

  50% {
    transform: translate(-100px, -80px) scale(1.05);
  }

  100% {
    transform: translate(50px, -40px) scale(0.95);
  }
}

@keyframes float-blob-3 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-60px, 80px) scale(0.9);
  }

  100% {
    transform: translate(40px, -60px) scale(1.1);
  }
}

/* Brand Logo (Top Header) */
.logo-container-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

/* TrueInno Logo */
.trueinno-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.auth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 360px;
}

.auth-trueinno-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* Main Content Area - Centered Layout */
.main-content {
  margin: 0 auto;
  max-width: 1200px;
  padding: 1.5rem 1.25rem;
  min-width: 0;
  /* Prevents flex children from stretching */
}

/* Top Header Bar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.trueinno-logo {
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-title h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  background: linear-gradient(to right, #1e3a8a, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-title p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.data-source-badge {
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--panel-border);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.data-source-badge .dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success-glow);
}

.data-source-badge.fallback .dot {
  background-color: var(--warning);
  box-shadow: 0 0 8px rgba(217, 119, 6, 0.4);
}

/* Card layout rules */
.glass-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  padding: 1rem;
  box-shadow:
    0 10px 30px -5px rgba(15, 23, 42, 0.08),
    0 1px 0px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 2px 0 rgba(0, 0, 0, 0.03) inset;
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 15px 35px -5px rgba(15, 23, 42, 0.12),
    0 1px 0px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 2px 0 rgba(0, 0, 0, 0.03) inset;
}

/* Glass Specular Highlight Sheen overlay */
.glass-panel {
  position: relative;
}

.glass-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(250px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
      rgba(255, 255, 255, 0.16),
      transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.glass-panel:hover::after {
  opacity: 1;
}

/* KPI Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.kpi-card {
  position: relative;
  overflow: hidden;
}

.kpi-card-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.kpi-title {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 600;
  text-transform: capitalize;
}

.kpi-icon {
  font-size: 0.875rem;
  color: #374151;
}

.kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}

.kpi-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.kpi-sub-seg {
  white-space: nowrap;
  display: inline-block;
}

.kpi-sub-div {
  color: var(--text-muted);
  white-space: nowrap;
}

/* Filters Panel */
.filters-section {
  margin-bottom: 1.25rem;
}

.btn-reset-block {
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 1px 0 0 rgba(255, 255, 255, 0.8) inset;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-reset-block:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.filters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-group:nth-child(1) {
  flex: 1 1 150px;
}

.filter-group:nth-child(2) {
  flex: 1 1 150px;
}

.filter-group:nth-child(3) {
  flex: 1.5 1 200px;
}

.filter-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-toggle-row .btn-toggle-group {
  flex: 1;
}

.filter-toggle-row .btn-reset-block {
  flex-shrink: 0;
}

.filter-label {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: capitalize;
}

.input-control {
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--text-primary);
  padding: 0.45rem 0.6rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-main);
  font-size: 0.85rem;
  outline: none;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 1px 0 0 rgba(255, 255, 255, 0.8) inset;
  transition: var(--transition);
  width: 100%;
}

.input-control:focus {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.range-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.range-val {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 30px;
  text-align: right;
}

input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
  height: 6px;
  border-radius: 3px;
  background: rgba(37, 99, 235, 0.1);
  outline: none;
}

/* Toggle buttons for binary filters (Segmented Liquid Glass Control) */
.btn-toggle-group {
  display: flex;
  background-color: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 3px;
  position: relative;
  gap: 2px;
  box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.02);
}

/* Floating sliding active pill background */
.btn-toggle-slider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(33.333% - 4px); /* default: 3 buttons */
  background-color: #ffffff;
  border-radius: 26px;
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.95);
  z-index: 1;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide positions based on data-active-index attribute */
.btn-toggle-group[data-active-index="0"] .btn-toggle-slider {
  transform: translateX(0);
}

.btn-toggle-group[data-active-index="1"] .btn-toggle-slider {
  transform: translateX(calc(100% + 4px));
}

.btn-toggle-group[data-active-index="2"] .btn-toggle-slider {
  transform: translateX(calc(200% + 8px));
}

/* 2-button toggle variant */
.timeline-mode-toggle .btn-toggle-slider {
  width: calc(50% - 4px);
}

.timeline-mode-toggle[data-active-index="1"] .btn-toggle-slider {
  transform: translateX(calc(100% + 2px));
}

.timeline-mode-toggle .btn-toggle {
  padding: 0.35rem 0.75rem;
  min-width: 4.5rem;
  text-align: center;
  justify-content: center;
}

.btn-toggle {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 26px;
  transition: color 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.btn-toggle:hover {
  color: var(--text-primary);
}

/* Active style: just text highlight, background handled by sliding pill */
.btn-toggle.active {
  color: var(--primary);
  font-weight: 700;
}

.btn-toggle[data-value="true"].active {
  color: var(--success);
}

.btn-toggle[data-value="false"].active {
  color: var(--warning);
}

/* Charts Section */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.charts-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.charts-grid.wide-single {
  grid-template-columns: 1fr;
}

.charts-grid.wide-single>.glass-panel {
  padding-bottom: 0.1rem;
}

.charts-grid.wide-single .chart-container {
  margin-bottom: -0.75rem;
}

@media (max-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .charts-grid.three-cols {
    grid-template-columns: 1fr;
  }
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.chart-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-transform: capitalize;
}

.chart-container {
  width: 100%;
}

.chart-note {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  text-align: right;
}

/* Password Gate Overlay */
#auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 24vh;
  background: var(--bg-color);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 45%);
}

#auth-overlay.hidden {
  display: none;
}

.auth-logo-row {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.color-category-select {
  width: auto;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--text-primary);
}

.kpi-divider {
  color: var(--text-muted);
  font-size: 1.25rem;
}

.lbl-member {
  color: var(--success);
}

.lbl-guest {
  color: var(--warning);
}

.lbl-men {
  color: var(--accent-cyan);
}

.lbl-lady {
  color: var(--accent-pink);
}

.ranking-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1.25rem 0;
}

.auth-card {
  width: 100%;
  padding: 2rem 2rem 1.75rem;
  text-align: center;
}

.auth-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.auth-input-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.auth-input-wrap .input-control {
  flex: 1;
}

.auth-submit-btn {
  width: 38px;
  flex-shrink: 0;
  background: var(--primary);
  border: none;
  border-radius: var(--border-radius-sm);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.auth-submit-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.auth-error {
  display: none;
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.6rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 25px rgba(31, 38, 135, 0.08);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--success);
  font-size: 1.25rem;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .sidebar {
    display: none;
    /* In a real app we'd build a drawer, but dashboard sidebar hide on mobile is simple */
  }

  .main-content {
    margin-left: 0;
    padding: 0.75rem 1rem;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Disable mouse pointer events (tooltips and hover selections) on the three bottom row charts */
.charts-grid.three-cols .chart-container {
  pointer-events: none;
}

.charts-grid.three-cols .chart-header {
  margin-bottom: 0;
}

.charts-grid.three-cols>.glass-panel {
  padding-bottom: 0.25rem;
}

.charts-grid.three-cols .chart-container {
  margin-bottom: -0.5rem;
}


/* Lists Grid (2 Columns) at the bottom */
.lists-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .lists-grid {
    grid-template-columns: 1fr;
  }
}

.list-panel {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 0.5rem;
}

.ranking-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  padding: 0.45rem 0.65rem;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.02),
    0 1px 0 0 rgba(255, 255, 255, 0.8) inset;
}

.ranking-item:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.05),
    0 1px 0 0 rgba(255, 255, 255, 0.95) inset;
}

.ranking-rank {
  font-weight: 800;
  color: var(--text-secondary);
  background-color: rgba(15, 23, 42, 0.05);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ranking-item:nth-child(1) .ranking-rank {
  color: #d97706;
  background-color: rgba(245, 158, 11, 0.15);
}

.ranking-item:nth-child(2) .ranking-rank {
  color: #64748b;
  background-color: rgba(148, 163, 184, 0.2);
}

.ranking-item:nth-child(3) .ranking-rank {
  color: #92400e;
  background-color: rgba(180, 83, 9, 0.12);
}

.ranking-item:nth-child(4) .ranking-rank,
.ranking-item:nth-child(5) .ranking-rank {
  color: #7dd3fc;
  background-color: rgba(125, 211, 252, 0.15);
}

.ranking-name {
  flex: 1;
  color: var(--text-primary);
  overflow: hidden;
  font-weight: 400;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ranking-name[title] {
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
}

.ranking-product-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-style-code {
  font-size: 0.63rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-color-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  overflow: hidden;
  flex-wrap: nowrap;
}

.combo-sep {
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.combo-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.combo-swatch-split {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid #374151;
}

.combo-label {
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-count {
  font-weight: 700;
  color: var(--success);
  background-color: rgba(16, 185, 129, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.7rem;
}

/* Staggered Entry Animations (Apple HIG style) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-title {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-container-top {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.08s;
  opacity: 0;
}

.filters-section {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.16s;
  opacity: 0;
}

.kpi-card:nth-child(1) {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.24s;
  opacity: 0;
}

.kpi-card:nth-child(2) {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.32s;
  opacity: 0;
}

.kpi-card:nth-child(3) {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.kpi-card:nth-child(4) {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.48s;
  opacity: 0;
}

.charts-grid.wide-single {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.56s;
  opacity: 0;
}

.charts-grid.three-cols {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.64s;
  opacity: 0;
}

.lists-grid {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.72s;
  opacity: 0;
}

/* Flatpickr Custom Frosted Glassmorphism Theme Overrides */
.flatpickr-calendar {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(37, 99, 235, 0.15) !important;
  box-shadow: 0 12px 30px rgba(31, 38, 135, 0.1) !important;
  border-radius: 12px !important;
  font-family: var(--font-main) !important;
  color: var(--text-primary) !important;
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
  border-bottom-color: rgba(37, 99, 235, 0.15) !important;
}

.flatpickr-calendar.arrowTop::before {
  border-bottom-color: rgba(37, 99, 235, 0.15) !important;
}

.flatpickr-calendar.arrowTop::after {
  border-bottom-color: rgba(255, 255, 255, 0.88) !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.selected.nextMonthDay {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day.today:hover {
  background: rgba(37, 99, 235, 0.1) !important;
  border-color: transparent !important;
  color: var(--primary) !important;
}

.flatpickr-day.today {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.flatpickr-day.today:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

.flatpickr-day {
  color: var(--text-primary) !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: var(--text-muted) !important;
  opacity: 0.3;
}

.flatpickr-months .flatpickr-month {
  color: var(--text-primary) !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp::after {
  border-bottom-color: var(--text-primary) !important;
}

.flatpickr-current-month .numInputWrapper span.arrowDown::after {
  border-top-color: var(--text-primary) !important;
}

.flatpickr-current-month input.cur-year {
  color: inherit !important;
}

.flatpickr-weekday {
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: var(--text-secondary) !important;
  fill: var(--text-secondary) !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: var(--primary) !important;
  fill: var(--primary) !important;
}