/* Fonts loaded via HTML <style> tag */

:root {
  --bg-primary: #0a0e13;
  --bg-secondary: #0f1419;
  --bg-card: #131920;
  --bg-card-hover: #182028;
  --bg-input: #0d1117;
  --border: #1e2a35;
  --border-glow: #00ff8820;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --accent-dark: #00994f;
  --accent-glow: rgba(0, 255, 136, 0.12);
  --accent-glow-strong: rgba(0, 255, 136, 0.25);
  --accent-glow-text: rgba(0, 255, 136, 0.8);
  --success: #00ff88;
  --warning: #ffb800;
  --danger: #ff4757;
  --danger-hover: #ff2e43;
  --info: #00b4d8;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.1);
  --shadow-glow-strong: 0 0 30px rgba(0, 255, 136, 0.15), 0 0 60px rgba(0, 255, 136, 0.05);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════════════════════ */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 255, 136, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 20% 80%, rgba(0, 255, 136, 0.03) 0%, transparent 40%);
  position: relative;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow), var(--shadow-glow);
  position: relative;
  z-index: 1;
}

.login-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), transparent 40%, transparent 60%, rgba(0, 255, 136, 0.1));
  z-index: -1;
  pointer-events: none;
}

.login-header { text-align: center; margin-bottom: 36px; }

.logo {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 26px;
  margin: 0 auto 20px; color: var(--bg-primary);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3), 0 0 60px rgba(0, 255, 136, 0.1);
  position: relative;
}

.login-header h1 {
  font-size: 26px; font-weight: 700; margin-bottom: 6px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-header p { color: var(--text-secondary); font-size: 14px; }

.made-by {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 14px; font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-glow);
}

.form-group input::placeholder { color: var(--text-muted); }

.form-hint {
  display: block; margin-top: 6px;
  font-size: 11px; color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; font-size: 13px; font-weight: 600; font-family: inherit;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  transition: var(--transition); text-decoration: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--accent); color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}
.btn-primary:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.35);
  transform: translateY(-1px);
}

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: var(--danger-hover); transform: translateY(-1px); }

.btn-success { background: var(--success); color: var(--bg-primary); }

.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-card-hover); color: var(--text-primary);
  border-color: var(--accent); box-shadow: var(--shadow-glow);
}

.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-full { width: 100%; }

.btn-icon {
  padding: 7px 10px; background: transparent;
  border: 1px solid var(--border); color: var(--text-secondary);
  border-radius: var(--radius-xs);
}
.btn-icon:hover {
  background: var(--bg-card-hover); color: var(--accent);
  border-color: var(--accent); box-shadow: var(--shadow-glow);
}

/* ═══════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════ */
#dashboard { display: flex; min-height: 100vh; }

.sidebar {
  width: 270px; background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
}

.sidebar-header {
  padding: 24px 20px; display: flex; align-items: center; gap: 14px;
  font-weight: 700; font-size: 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.04), transparent);
}

.logo-small {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: var(--bg-primary); flex-shrink: 0;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
}

.nav-links { list-style: none; padding: 16px 12px; flex: 1; }

.nav-link {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; color: var(--text-secondary);
  text-decoration: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  transition: var(--transition); margin-bottom: 4px;
  position: relative;
}
.nav-link:hover {
  color: var(--text-primary); background: var(--bg-card);
}
.nav-link.active {
  color: var(--accent); background: var(--accent-glow);
  box-shadow: inset 0 0 20px rgba(0, 255, 136, 0.05);
}
.nav-link.active::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%; border-radius: 0 4px 4px 0;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.nav-link.active svg { stroke: var(--accent); }

.sidebar-footer { padding: 16px 12px; border-top: 1px solid var(--border); }

.server-status {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 10px;
  font-size: 13px; color: var(--accent);
  background: var(--accent-glow); border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 255, 136, 0.1);
}

.main-content {
  flex: 1; margin-left: 270px; padding: 36px;
  max-width: 1400px;
  background-image: radial-gradient(ellipse at 80% 0%, rgba(0, 255, 136, 0.02) 0%, transparent 50%);
}

/* ═══════════════════════════════════════════════
   PAGES
   ═══════════════════════════════════════════════ */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.page-header h2 {
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 60%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-actions { display: flex; gap: 10px; }

/* ═══════════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px; margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.stat-card.accent {
  border-color: rgba(0, 255, 136, 0.2);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.06), var(--bg-card));
}
.stat-card.accent::after {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.stat-card.warn {
  border-color: rgba(255, 184, 0, 0.2);
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.06), var(--bg-card));
}
.stat-card.warn::after {
  background: linear-gradient(90deg, transparent, var(--warning), transparent);
}

.stat-icon {
  position: absolute; top: 20px; right: 20px;
  color: var(--accent); opacity: 0.3;
}

.stat-number {
  font-size: 36px; font-weight: 800; margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
}

.stat-card.accent .stat-number {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.stat-label {
  font-size: 12px; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}

/* ═══════════════════════════════════════════════
   DASHBOARD GRID
   ═══════════════════════════════════════════════ */
.dashboard-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 28px;
}

.dashboard-section h3 {
  font-size: 15px; font-weight: 700; margin-bottom: 14px;
  color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recent-section h3 {
  font-size: 15px; font-weight: 700; margin-bottom: 14px;
  color: var(--text-secondary); text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════ */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg-secondary); }

th {
  padding: 14px 18px; text-align: left; font-size: 11px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 18px; font-size: 14px;
  border-bottom: 1px solid rgba(30, 42, 53, 0.6);
}

tr:last-child td { border-bottom: none; }
tr { transition: var(--transition); }
tr:hover td { background: var(--bg-card-hover); }

/* ═══════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px; text-transform: uppercase;
}

.badge-active {
  background: rgba(0, 255, 136, 0.1); color: var(--accent);
  border: 1px solid rgba(0, 255, 136, 0.2);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}
.badge-inactive {
  background: rgba(255, 71, 87, 0.1); color: var(--danger);
  border: 1px solid rgba(255, 71, 87, 0.2);
}
.badge-expired {
  background: rgba(255, 184, 0, 0.1); color: var(--warning);
  border: 1px solid rgba(255, 184, 0, 0.2);
}
.badge-plugin {
  background: rgba(0, 255, 136, 0.08); color: var(--accent-dim);
  border: 1px solid rgba(0, 255, 136, 0.15);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
}
.badge-online {
  background: rgba(0, 255, 136, 0.1); color: var(--accent);
  border: 1px solid rgba(0, 255, 136, 0.2);
}
.badge-offline {
  background: rgba(72, 79, 88, 0.2); color: var(--text-muted);
  border: 1px solid rgba(72, 79, 88, 0.3);
}
.badge-update-blocked {
  background: rgba(255, 71, 87, 0.12); color: #ff6b7a;
  border: 1px solid rgba(255, 71, 87, 0.25);
  font-size: 10px;
  animation: pulse-update 2s ease-in-out infinite;
}
.badge-update-available {
  background: rgba(0, 180, 216, 0.12); color: var(--info);
  border: 1px solid rgba(0, 180, 216, 0.25);
  font-size: 10px;
}
@keyframes pulse-update {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ═══════════════════════════════════════════════
   LICENSE KEY
   ═══════════════════════════════════════════════ */
.license-key {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500;
  background: var(--bg-input); padding: 5px 10px;
  border-radius: var(--radius-xs); letter-spacing: 1.5px;
  user-select: all; cursor: pointer;
  border: 1px solid var(--border);
  color: var(--accent-glow-text);
  transition: var(--transition);
}

.license-key:hover {
  background: var(--accent-glow);
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.15);
}

.license-key-hidden {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500;
  background: var(--bg-input); padding: 5px 10px;
  border-radius: var(--radius-xs); letter-spacing: 1.5px;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
  user-select: none;
}
.license-key-hidden.revealed {
  color: var(--accent-glow-text);
  user-select: all;
  border-color: rgba(0, 255, 136, 0.3);
}
.license-key-hidden:hover {
  border-color: rgba(0, 255, 136, 0.2);
}
.license-key-detail {
  font-size: 15px;
  padding: 8px 14px;
}
.key-reveal-container {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   COPY FEEDBACK
   ═══════════════════════════════════════════════ */
.copy-feedback {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent); color: var(--bg-primary);
  padding: 10px 24px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
  animation: fadeInOut 1.5s ease;
  pointer-events: none; z-index: 3000;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* ═══════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════ */
.modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}

.modal-content {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px; width: 100%; max-width: 500px;
  box-shadow: var(--shadow), var(--shadow-glow-strong);
  max-height: 90vh; overflow-y: auto;
  position: relative;
}

.modal-content::before {
  content: '';
  position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), transparent 40%);
  z-index: -1; pointer-events: none;
}

.modal-wide { max-width: 680px; }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.modal-header h3 { font-size: 20px; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 28px; cursor: pointer; padding: 4px; line-height: 1;
  transition: var(--transition);
}
.modal-close:hover { color: var(--accent); }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }

/* ═══════════════════════════════════════════════
   FILTER BAR
   ═══════════════════════════════════════════════ */
.filter-bar { display: flex; gap: 12px; margin-bottom: 18px; }

.search-input {
  flex: 1; padding: 11px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 14px; font-family: inherit;
  transition: var(--transition);
}
.search-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-glow);
}
.search-input::placeholder { color: var(--text-muted); }

.filter-select {
  padding: 11px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 14px; font-family: inherit; min-width: 150px;
  transition: var(--transition); cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--accent); }

/* ═══════════════════════════════════════════════
   SETTINGS
   ═══════════════════════════════════════════════ */
.settings-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin-bottom: 20px;
  transition: var(--transition);
}
.settings-card:hover { border-color: var(--border-glow); }
.settings-card h3 {
  font-size: 17px; font-weight: 700; margin-bottom: 20px;
  color: var(--accent);
}
.settings-info { color: var(--text-secondary); font-size: 14px; margin-bottom: 14px; }

.code-block {
  display: block; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--accent);
  word-break: break-all; user-select: all; cursor: pointer;
  transition: var(--transition);
}
.code-block:hover {
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: var(--shadow-glow);
}

/* ═══════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 24px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow); z-index: 2000;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.success {
  border-color: rgba(0, 255, 136, 0.4); color: var(--accent);
  box-shadow: var(--shadow), 0 0 20px rgba(0, 255, 136, 0.15);
}
.toast.error {
  border-color: rgba(255, 71, 87, 0.4); color: var(--danger);
  box-shadow: var(--shadow), 0 0 20px rgba(255, 71, 87, 0.15);
}

@keyframes slideIn {
  from { transform: translateY(30px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.error-text { color: var(--danger); font-size: 13px; margin-top: 14px; text-align: center; }

/* ═══════════════════════════════════════════════
   LICENSE DETAIL
   ═══════════════════════════════════════════════ */
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 20px;
}
.detail-item {
  padding: 14px 16px; background: var(--bg-input);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.detail-item label {
  display: block; font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
  font-weight: 700;
}
.detail-item span { font-size: 14px; font-weight: 500; }
.detail-full { grid-column: 1 / -1; }

.ip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ip-tag {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: var(--radius-xs);
  font-size: 12px; font-family: 'JetBrains Mono', monospace;
  color: var(--accent-glow-text);
}

.detail-actions { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.actions-cell { display: flex; gap: 6px; }

.empty-state {
  text-align: center; padding: 56px 20px; color: var(--text-muted);
}
.empty-state p { margin-top: 8px; font-size: 14px; }

/* ═══════════════════════════════════════════════
   ACTIVITY LOG
   ═══════════════════════════════════════════════ */
.activity-action {
  font-weight: 600; text-transform: capitalize;
  font-size: 13px;
}
.activity-action.created { color: var(--success); }
.activity-action.deleted { color: var(--danger); }
.activity-action.updated { color: var(--info); }
.activity-action.activated { color: var(--success); }
.activity-action.deactivated { color: var(--warning); }
.activity-action.login { color: var(--accent); }

/* ═══════════════════════════════════════════════
   BULK / CHECKBOX
   ═══════════════════════════════════════════════ */
.bulk-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkbox-cell { width: 40px; }
input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer;
  accent-color: var(--accent);
}

.pagination { display: flex; justify-content: center; gap: 8px; padding: 18px; }

/* ═══════════════════════════════════════════════
   ONLINE INDICATOR
   ═══════════════════════════════════════════════ */
.recent-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 8px var(--accent), 0 0 16px rgba(0, 255, 136, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent), 0 0 16px rgba(0, 255, 136, 0.3); }
  50% { opacity: 0.5; box-shadow: 0 0 4px var(--accent); }
}

.online-indicator { display: inline-flex; align-items: center; gap: 6px; }

/* ═══════════════════════════════════════════════
   CONFIG PREVIEW
   ═══════════════════════════════════════════════ */
.config-preview {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  white-space: pre;
  color: var(--accent);
  user-select: all;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

/* ═══════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar { width: 64px; }
  .sidebar-header span, .nav-link span, .server-status .status-text { display: none; }
  .main-content { margin-left: 64px; padding: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; }
  .page-header h2 { font-size: 22px; }
}

/* Selection glow on table rows */
tr:has(input[type="checkbox"]:checked) td {
  background: var(--accent-glow) !important;
}
