/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sidebar-w: 240px;
  --topbar-h:  64px;

  --bg:        #0d0f17;
  --bg-card:   #131622;
  --bg-card2:  #1a1d2e;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);

  --text:      #e8eaf0;
  --text-muted:#7c82a0;
  --text-dim:  #4a4f6a;

  --blue:      #4f8ef7;
  --blue-soft: rgba(79,142,247,0.15);
  --blue-glow: rgba(79,142,247,0.30);
  --purple:    #a78bfa;
  --purple-soft:rgba(167,139,250,0.15);
  --green:     #34d399;
  --green-soft: rgba(52,211,153,0.15);
  --amber:     #fbbf24;
  --amber-soft: rgba(251,191,36,0.15);
  --red:       #f87171;
  --red-soft:  rgba(248,113,113,0.15);

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);

  --transition: 0.2s ease;
}

html { font-size: 15px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 10px; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 0;
  height: var(--topbar-h);
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 18px; height: 18px; stroke: #fff; }
.logo-text { font-size: 1.1rem; color: var(--text); letter-spacing: -0.3px; }
.logo-text strong { color: var(--blue); }

.sidebar-nav {
  flex: 1;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg-card2); color: var(--text); }
.nav-item.active {
  background: var(--blue-soft);
  color: var(--blue);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sync-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--blue), #6b5ce7);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity var(--transition), transform var(--transition);
}
.sync-btn svg { width: 16px; height: 16px; }
.sync-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.sync-btn:active { transform: translateY(0); }
.sync-btn.loading svg { animation: spin 1s linear infinite; }

.last-sync { font-size: 0.75rem; color: var(--text-dim); text-align: center; }

/* ── Main ────────────────────────────────────────────────────────────────── */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Topbar ──────────────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: sticky; top: 0;
  z-index: 90;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: var(--transition);
}
.page-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.3px; }

.topbar-right { display: flex; align-items: center; gap: 14px; }
.status-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}
.status-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.topbar-date { font-size: 0.82rem; color: var(--text-muted); display: none; }
@media (min-width: 600px) {
  .topbar-date { display: block; }
}

.project-select {
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--bg-card2);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: auto;
}

/* User Menu */
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card2);
  color: var(--text-muted);
  transition: all var(--transition);
}
.user-btn:hover { background: var(--blue-soft); color: var(--blue); }
.user-dropdown {
  position: absolute; right: 0; top: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  width: 180px;
  display: none;
  flex-direction: column;
  padding: 8px 0;
  z-index: 100;
}
.user-dropdown.show { display: flex; animation: fadeIn 0.15s ease; }
.user-dropdown a {
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}
.user-dropdown a:hover { background: var(--bg-card2); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: none; place-items: center;
  z-index: 200;
}
.modal-overlay.show { display: grid; animation: fadeIn 0.2s ease; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%; max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 1.05rem; }
.modal-close { font-size: 1.4rem; color: var(--text-muted); transition: color 0.2s; }
.modal-close:hover { color: var(--red); }
.modal-body { padding: 24px; }

/* ── Section ─────────────────────────────────────────────────────────────── */
.section { padding: 28px; flex: 1; }
.section.hidden { display: none; }

/* ── Cards Grid ──────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card-blue  .card-icon { background: var(--blue-soft); color: var(--blue); }
.card-purple .card-icon { background: var(--purple-soft); color: var(--purple); }
.card-green .card-icon { background: var(--green-soft); color: var(--green); }
.card-amber .card-icon { background: var(--amber-soft); color: var(--amber); }

.card-blue::before  { background: linear-gradient(135deg, var(--blue-soft), transparent); }
.card-purple::before { background: linear-gradient(135deg, var(--purple-soft), transparent); }
.card-green::before { background: linear-gradient(135deg, var(--green-soft), transparent); }
.card-amber::before { background: linear-gradient(135deg, var(--amber-soft), transparent); }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.card-icon svg { width: 22px; height: 22px; stroke: currentColor; }
.card-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.card-value { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -1px; margin-bottom: 4px; }
.card-sub   { font-size: 0.75rem; color: var(--text-muted); }

/* ── Charts ──────────────────────────────────────────────────────────────── */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
  margin-bottom: 24px;
}
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.chart-card.full-width { grid-column: 1 / -1; }
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.chart-header h3 { font-size: 0.95rem; font-weight: 700; }
.chart-badge {
  font-size: 0.7rem; font-weight: 600;
  padding: 3px 8px;
  background: var(--bg-card2);
  border: 1px solid var(--border2);
  border-radius: 99px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.chart-wrap { position: relative; height: 220px; }
.chart-wrap-sm { height: 180px; }
.chart-wrap-lg { height: 360px; }

.tp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tp-legend-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.76rem; color: var(--text-muted);
}
.tp-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Third-party analytics grid */
.tp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.tp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform var(--transition);
}
.tp-card:hover { transform: translateY(-2px); }
.tp-card-name {
  font-weight: 700;
  text-transform: capitalize;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.tp-bar-wrap { margin-bottom: 8px; }
.tp-bar-label { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.tp-bar-track { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.tp-bar-fill  { height: 100%; border-radius: 99px; transition: width 0.6s ease; }
.tp-bar-fill.success { background: linear-gradient(to right, var(--green), #059669); }
.tp-bar-fill.fail    { background: linear-gradient(to right, var(--red), #dc2626); }
.tp-total { font-size: 0.75rem; color: var(--text-dim); margin-top: 8px; }

/* ── Table Card ──────────────────────────────────────────────────────────── */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.table-header h3 { font-size: 0.95rem; font-weight: 700; }
.view-all-btn {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 600;
  transition: opacity var(--transition);
}
.view-all-btn:hover { opacity: 0.7; }
.record-count { font-size: 0.8rem; color: var(--text-muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
}
.badge.success { background: var(--green-soft); color: var(--green); }
.badge.fail    { background: var(--red-soft);   color: var(--red); }
.badge.neutral { background: var(--bg-card2);   color: var(--text-muted); }

.tp-badges { display: flex; flex-wrap: wrap; gap: 4px; }

.table-loader { padding: 40px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.table-empty  { padding: 40px; text-align: center; color: var(--text-dim); font-size: 0.9rem; }

/* ── Filters ─────────────────────────────────────────────────────────────── */
.filters-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  align-items: center;
}
.filter-input {
  padding: 9px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
  min-width: 180px;
}
.filter-input:focus { border-color: var(--blue); }
.filter-input::placeholder { color: var(--text-dim); }
.clear-btn {
  padding: 9px 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}
.clear-btn:hover { border-color: var(--red); color: var(--red); }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
  padding: 0 10px;
}
.page-btn:hover { border-color: var(--blue); color: var(--blue); }
.page-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-btn:disabled { opacity: 0.4; pointer-events: none; }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 360px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #162a22; border: 1px solid rgba(52,211,153,0.4); color: var(--green); }
.toast.error   { background: #2a1616; border: 1px solid rgba(248,113,113,0.4); color: var(--red); }
.toast.info    { background: #141d33; border: 1px solid rgba(79,142,247,0.4); color: var(--blue); }

/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section:not(.hidden) { animation: fadeIn 0.25s ease; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-card2) 25%, var(--border) 50%, var(--bg-card2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .charts-row { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(calc(-1 * var(--sidebar-w))); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow); }
  .main { margin-left: 0; }
  .hamburger { display: flex; }
  .section { padding: 18px; }
}
@media (max-width: 500px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .filters-bar { flex-direction: column; }
  .filter-input { min-width: 100%; }
}
/* ── Overview Section ──────────────────────────────────────────────────────── */
.overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  padding: 8px 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.date-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-card2);
  color: var(--text-muted);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.date-nav-btn:hover:not(:disabled) {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: var(--blue);
  transform: scale(1.05);
}

.date-nav-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.date-nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.current-date-display {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 160px;
  text-align: center;
  letter-spacing: -0.2px;
}

.overview-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 99px;
}

.overview-status span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(79, 142, 247, 0.4);
  animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 142, 247, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(79, 142, 247, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 142, 247, 0); }
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.project-card {
  background: linear-gradient(145deg, var(--bg-card), #1a1e2e);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  opacity: 0.6;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border-color: var(--blue-glow);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.project-card-subs {
  text-align: right;
}

.project-card-subs .value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.project-card-subs .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.project-tp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-tp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.03);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
}

.tp-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tp-name {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}

.tp-stats {
  display: flex;
  gap: 8px;
}

.tp-stat-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tp-stat-pill.success { background: var(--green-soft); color: var(--green); }
.tp-stat-pill.fail    { background: var(--red-soft);   color: var(--red); }

.project-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.health-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.health-dot.excellent { background: var(--green); box-shadow: 0 0 10px var(--green); }
.health-dot.warning   { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.health-dot.critical  { background: var(--red);   box-shadow: 0 0 10px var(--red); }

/* Responsive adjustments */
@media (max-width: 600px) {
  .overview-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .date-nav {
    width: 100%;
    justify-content: space-between;
  }
}

/* ── Critical State Styles ─────────────────────────────────────────────────── */
.card-critical {
  border-color: rgba(248, 113, 113, 0.4);
  background: linear-gradient(145deg, var(--bg-card), #2a1616);
}

.card-critical:hover {
  border-color: var(--red);
  box-shadow: 0 12px 40px rgba(248, 113, 113, 0.2);
}

.text-red {
  color: var(--red) !important;
}

.critical-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.2);
  margin-top: 4px;
  animation: pulse-red 2s infinite;
}

.critical-warning svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.critical-warning span {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

@keyframes pulse-red {
  0% { background: var(--red-soft); }
  50% { background: rgba(248, 113, 113, 0.25); }
  100% { background: var(--red-soft); }
}
