/* Inter Variable Font - self-hosted */
@font-face {
  font-family: 'Inter Var';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/public/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Var';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/public/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* App switcher dropdown */
.navbar-brand.dropdown-toggle {
  display: flex;
  align-items: center;
}
.navbar-brand.dropdown-toggle::after {
  margin-left: 0.4rem;
  opacity: 0.6;
}
.dropdown-menu-dark .dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}
.dropdown-menu-dark .dropdown-item.active {
  background-color: rgba(255, 255, 255, 0.1);
}
.badge.bg-purple {
  background-color: #7c3aed !important;
}
.badge.bg-red {
  background-color: #d63939 !important;
}

/* Google login button */
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-google:hover {
  background: #f7f8f8;
}

/* Status colors */
:root {
  --status-ok: #2fb344;
  --status-obs: #f59f00;
  --status-action: #d63939;
}

/* Status banner */
.status-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.status-banner.ok { background: #f0fdf4; border-left: 4px solid var(--status-ok); }
.status-banner.obs { background: #fffbeb; border-left: 4px solid var(--status-obs); }
.status-banner.action { background: #fef2f2; border-left: 4px solid var(--status-action); }
.status-banner .status-label {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.status-banner.ok .status-label { color: var(--status-ok); }
.status-banner.obs .status-label { color: var(--status-obs); }
.status-banner.action .status-label { color: var(--status-action); }

/* Index table colors */
.idx-good { color: var(--status-ok); font-weight: 600; }
.idx-warn { color: var(--status-obs); font-weight: 600; }
.idx-bad { color: var(--status-action); font-weight: 600; }

/* KPI enhancements */
.kpi-change {
  font-size: 0.8rem;
  font-weight: 500;
}
.kpi-change.up { color: var(--status-ok); }
.kpi-change.down { color: var(--status-action); }
.kpi-change.neutral { color: var(--status-obs); }
.kpi-target {
  font-size: 0.78rem;
  margin-top: 2px;
}

/* Optimization cards */
.opt-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 8px;
  transition: background 0.15s;
}
.opt-card:hover { background: #f8fafc; }
.opt-type-bar {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
}
.opt-reason {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .row-deck > [class*="col-"] { margin-bottom: 0.75rem; }
}
