:root { color-scheme: dark; }
[x-cloak] { display: none !important; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(225, 29, 72, 0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(225, 29, 72, 0.4); }

body { 
  font-family: 'Geist', 'Inter', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
}

/* Cards & Containers */
.panel-card { 
  border: 1px solid rgba(255,255,255,0.06); 
  background: rgba(18,18,20,0.6); 
  backdrop-filter: blur(20px);
  border-radius: 1.25rem; 
  box-shadow: 0 4px 24px -2px rgba(0,0,0,0.5);
}

.stat-card { 
  border: 1px solid rgba(255,255,255,0.06); 
  background: linear-gradient(135deg, rgba(24,24,27,0.8), rgba(9,9,11,0.9));
  border-radius: 1rem; 
  padding: 1.5rem;
  transition: all 0.2s ease;
}
.stat-card:hover { border-color: rgba(225, 29, 72, 0.3); transform: translateY(-2px); }
.stat-card p { color: #a1a1aa; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.65rem; font-weight: 700; }
.stat-card strong { margin-top: 0.25rem; display: block; color: #fff; font-size: 1.75rem; font-weight: 800; }

/* Buttons */
.btn-red, .btn-ghost, .lang-pill { 
  min-height: 42px; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  border-radius: 0.75rem; 
  padding: 0.5rem 1.25rem; 
  font-weight: 600; 
  font-size: 0.875rem; 
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0.5rem;
}

.btn-red { 
  background: #e11d48; 
  color: #fff; 
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}
.btn-red:hover { background: #be123c; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(225, 29, 72, 0.35); }
.btn-red:active { transform: translateY(0); }

.btn-ghost { 
  border: 1px solid rgba(255,255,255,0.08); 
  background: rgba(255,255,255,0.03); 
  color: #e4e4e7; 
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }

.lang-pill { 
  min-height: 32px; 
  padding: 0 0.75rem; 
  border: 1px solid rgba(255,255,255,0.1); 
  color: #a1a1aa; 
  background: rgba(255,255,255,0.03); 
  font-size: 0.75rem; 
  font-weight: 700;
}
.lang-pill:hover { color: #fff; border-color: rgba(225, 29, 72, 0.5); }

/* Inputs */
.input, .field input, .field textarea, .field select { 
  width: 100%; 
  border-radius: 0.75rem; 
  border: 1px solid rgba(255,255,255,0.08); 
  background: rgba(9,9,11,0.5); 
  color: #fff; 
  min-height: 42px; 
  padding: 0.6rem 1rem; 
  outline: none; 
  transition: all 0.2s ease;
}
.input:focus, .field input:focus { border-color: #e11d48; box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1); }

/* Navigation */
.nav-link { 
  display: flex; 
  min-height: 40px; 
  align-items: center; 
  border-radius: 0.6rem; 
  padding: 0.5rem 0.85rem; 
  color: #71717a; 
  font-weight: 500;
  transition: all 0.15s ease;
}
.nav-link:hover { color: #e4e4e7; background: rgba(255,255,255,0.03); }
.nav-link.active { color: #fff; background: rgba(225, 29, 72, 0.1); color: #fb7185; font-weight: 600; }

.bottom-link { 
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center; 
  gap: 0.25rem;
  font-size: 0.65rem; 
  color: #71717a; 
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bottom-link.active { color: #e11d48; }

/* Status Badges */
.status, .severity { 
  border-radius: 6px; 
  padding: 0.2rem 0.5rem; 
  font-size: 0.65rem; 
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: 0.05em; 
  border: 1px solid transparent;
}
.status.online, .status.done, .severity.success { color: #4ade80; background: rgba(22,101,52,0.15); border-color: rgba(34,197,94,0.2); }
.status.offline, .status.failed, .severity.critical { color: #f87171; background: rgba(127,29,29,0.15); border-color: rgba(239,68,68,0.2); }
.status.queued, .status.sent, .severity.warning { color: #fbbf24; background: rgba(120,53,15,0.15); border-color: rgba(245,158,11,0.2); }

/* Tables */
.responsive-table table { border-spacing: 0 0.5rem; }
th { color: #52525b; text-align: left; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.65rem; font-weight: 700; padding: 0.75rem 1rem; }
td { background: rgba(18,18,20,0.4); border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04); padding: 1rem; color: #d4d4d8; font-size: 0.875rem; }
td:first-child { border-left: 1px solid rgba(255,255,255,0.04); border-radius: 0.75rem 0 0 0.75rem; }
td:last-child { border-right: 1px solid rgba(255,255,255,0.04); border-radius: 0 0.75rem 0.75rem 0; }

@media (max-width: 1024px) {
  .responsive-table tr { background: rgba(18,18,20,0.6); border: 1px solid rgba(255,255,255,0.06); border-radius: 0.75rem; margin-bottom: 0.75rem; padding: 1rem; display: block; }
  .responsive-table td { background: transparent; border: none; padding: 0.4rem 0; display: flex; justify-content: space-between; border-radius: 0 !important; }
  .responsive-table td::before { content: attr(data-label); color: #52525b; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
}
