:root {
  --bg: #0f172a;
  --card: #0b1220;
  --muted: #9aa4b2;
  --accent: #4f46e5;
  --accent-hover: #6366f1;
  --positive: #10b981;
  --border: #1f2937;
}
* { box-sizing: border-box; }
body { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; margin: 0; background: linear-gradient(180deg, #0b1020, #0f172a); color: #e5e7eb; }
.container { max-width: 1100px; margin: 32px auto; background: rgba(11, 18, 32, 0.7); padding: 28px; border-radius: 16px; backdrop-filter: blur(8px); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.3); animation: fadeIn 400ms ease-out; }
.tabs { margin-bottom: 16px; display: flex; gap: 8px; }
.tab-btn { margin: 0; padding: 10px 14px; border: 1px solid var(--border); background: #0b1220; cursor: pointer; border-radius: 10px; color: #e5e7eb; transition: all 160ms ease; }
.tab-btn:hover { transform: translateY(-1px); border-color: #2b3445; }
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4); }
.tab { display: none; animation: scaleIn 180ms ease; }
.tab.active { display: block; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 16px; }
.stat { background: #0b1220; padding: 16px; border-radius: 12px; border: 1px solid var(--border); }
.stat span { color: var(--muted); }
.controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
label { color: var(--muted); }
input[type="text"], input[type="email"], input[type="number"], textarea {
  width: 100%; background: #0b1220; border: 1px solid var(--border); color: #e5e7eb; padding: 10px 12px; border-radius: 10px; outline: none; transition: border-color 140ms ease;
}
input:focus, textarea:focus { border-color: var(--accent); }
button { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: #0b1220; color: #e5e7eb; cursor: pointer; transition: all 160ms ease; }
button:hover { transform: translateY(-1px); border-color: #2b3445; }
.primary { background: var(--accent); border-color: var(--accent); }
.primary:hover { background: var(--accent-hover); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4); }
.ghost { background: transparent; }
.danger { background: #ef4444; border-color: #ef4444; }
.danger:hover { background: #f87171; box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35); }
table { width: 100%; border-collapse: collapse; margin-top: 16px; overflow: hidden; border-radius: 12px; }
th, td { border-bottom: 1px solid var(--border); padding: 12px; text-align: left; }
thead th { background: #0b1220; color: var(--muted); }
tbody tr { background: #0b1220; transition: background 140ms ease; }
tbody tr:hover { background: #10172a; }
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); animation: fadeIn 200ms ease; }
.modal-card { position: relative; background: #0b1220; border: 1px solid var(--border); border-radius: 16px; width: 560px; max-width: 92vw; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); animation: slideUp 220ms ease; }
.modal-card h2 { margin-top: 0; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.form { display: grid; gap: 10px; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { transform: translateY(8px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
@keyframes scaleIn { from { transform: scale(0.98); opacity: 0.8 } to { transform: scale(1); opacity: 1 } }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; background: #0b1220; border: 1px solid var(--border); color: var(--muted); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #64748b; animation: pulse 1200ms infinite; }
.badge.running { color: #e7f8ef; background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.4); }
.badge.running::before { background: var(--positive); }
@keyframes pulse { 0% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.3); opacity: 0.7 } 100% { transform: scale(1); opacity: 1 } }
