/* SiteMind Dashboard */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; background: #0f172a; color: #e2e8f0; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1e293b; }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Status dots */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-healthy { background: #22c55e; box-shadow: 0 0 6px #22c55e80; }
.dot-degraded { background: #eab308; box-shadow: 0 0 6px #eab30880; }
.dot-down { background: #ef4444; box-shadow: 0 0 6px #ef444480; }
.dot-unknown { background: #64748b; }
.dot-pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* Card hover */
.card { background: #1e293b; border: 1px solid #334155; border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: #475569; box-shadow: 0 4px 24px #00000040; }
.card-clickable { cursor: pointer; }
.card-clickable:hover { border-color: #38bdf8; }

/* Sidebar */
.sidebar { background: #1e293b; border-right: 1px solid #334155; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 8px; color: #94a3b8; text-decoration: none; transition: all .15s; font-size: 14px; }
.nav-link:hover { background: #334155; color: #e2e8f0; }
.nav-link.active { background: #38bdf820; color: #38bdf8; }

/* Stat cards */
.stat-card { background: #1e293b; border: 1px solid #334155; border-radius: 12px; padding: 20px; }
.stat-value { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: .75rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }

/* Tables */
.sm-table { width: 100%; border-collapse: collapse; }
.sm-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; padding: 8px 12px; border-bottom: 1px solid #334155; }
.sm-table td { padding: 10px 12px; border-bottom: 1px solid #1e293b; font-size: .875rem; }
.sm-table tr:hover td { background: #1e293b80; }

/* Badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 9999px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.badge-info { background: #38bdf820; color: #38bdf8; }
.badge-warning { background: #eab30820; color: #eab308; }
.badge-error { background: #ef444420; color: #ef4444; }
.badge-critical { background: #ef444440; color: #fca5a5; }
.badge-active { background: #ef444420; color: #ef4444; }
.badge-acknowledged { background: #eab30820; color: #eab308; }
.badge-resolved { background: #22c55e20; color: #22c55e; }
.badge-healthy { background: #22c55e20; color: #22c55e; }
.badge-degraded { background: #eab30820; color: #eab308; }
.badge-down { background: #ef444420; color: #ef4444; }
.badge-unknown { background: #64748b20; color: #94a3b8; }

/* Buttons */
.btn { padding: 6px 14px; border-radius: 6px; border: 1px solid #334155; background: #1e293b; color: #e2e8f0; font-size: .8rem; cursor: pointer; transition: all .15s; }
.btn:hover { background: #334155; }
.btn-primary { background: #0ea5e9; border-color: #0ea5e9; color: #fff; }
.btn-primary:hover { background: #0284c7; }
.btn-sm { padding: 3px 10px; font-size: .75rem; }
.btn-danger { border-color: #ef4444; color: #ef4444; }
.btn-danger:hover { background: #ef444420; }

/* Gauge */
.gauge-bg { background: #334155; border-radius: 4px; height: 8px; overflow: hidden; }
.gauge-fill { height: 100%; border-radius: 4px; transition: width .5s ease; }

/* Sparkline */
.sparkline { overflow: visible; }

/* Copy button */
.copy-wrap { position: relative; }
.copy-toast { position: absolute; top: -28px; right: 0; background: #22c55e; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: .7rem; opacity: 0; transition: opacity .2s; pointer-events: none; }
.copy-toast.show { opacity: 1; }

/* Tabs */
.tab { padding: 8px 20px; border-bottom: 2px solid transparent; color: #94a3b8; cursor: pointer; font-size: .875rem; transition: all .15s; }
.tab:hover { color: #e2e8f0; }
.tab.active { color: #38bdf8; border-bottom-color: #38bdf8; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: #64748b; }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: .5; }

/* Mobile sidebar */
@media (max-width: 768px) {
  .sidebar { position: fixed; left: -260px; top: 0; bottom: 0; z-index: 50; width: 260px; transition: left .3s; }
  .sidebar.open { left: 0; }
  .sidebar-overlay { position: fixed; inset: 0; background: #00000060; z-index: 40; }
}

/* Form inputs */
.input { background: #0f172a; border: 1px solid #334155; border-radius: 8px; padding: 10px 14px; color: #e2e8f0; font-size: .875rem; width: 100%; outline: none; transition: border-color .15s; }
.input:focus { border-color: #38bdf8; }
.input::placeholder { color: #475569; }
