/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0f1117;
  --bg-secondary: #1a1d2e;
  --bg-card: #1e2235;
  --bg-hover: #252840;
  --border: #2d3148;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #4f8ef7;
  --accent-hover: #3b7de9;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --purple: #a855f7;
  --cyan: #06b6d4;
  --sidebar-width: 240px;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
}

.sidebar-header {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.logo i { font-size: 1.5rem; }

.nav-links {
  list-style: none;
  padding: 1rem 0.75rem;
  flex: 1;
  overflow-y: auto;
}

.nav-links li { margin-bottom: 4px; }

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}

.nav-links a:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-links a.active { background: var(--accent); color: white; }
.nav-links a i { width: 18px; text-align: center; }

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  overflow: hidden;
}

.avatar {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.username {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-btn {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.15s;
}

.logout-btn:hover { color: var(--red); background: rgba(239,68,68,0.1); }

/* ===== MAIN CONTENT ===== */
.content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 2rem;
  max-width: calc(100vw - var(--sidebar-width));
}

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-header h1 i { color: var(--accent); }

.header-actions { display: flex; gap: 0.5rem; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h2, .card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body { padding: 1.25rem; }

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.stat-icon.green { background: rgba(34,197,94,0.15); color: var(--green); }
.stat-icon.blue { background: rgba(79,142,247,0.15); color: var(--accent); }
.stat-icon.purple { background: rgba(168,85,247,0.15); color: var(--purple); }
.stat-icon.red { background: rgba(239,68,68,0.15); color: var(--red); }
.stat-icon.orange { background: rgba(249,115,22,0.15); color: #f97316; }

.stat-value { font-size: 1.75rem; font-weight: 700; }
.stat-label { color: var(--text-secondary); font-size: 0.8rem; }

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
}

/* ===== SERVER STATUS ===== */
.server-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.server-status-item:last-child { border-bottom: none; }

.server-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.server-info strong a { color: var(--text-primary); text-decoration: none; }
.server-info strong a:hover { color: var(--accent); }
.server-info small { display: block; color: var(--text-muted); font-size: 0.75rem; }

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-dot.offline { background: var(--red); }

/* ===== SERVERS GRID ===== */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.server-card:hover { border-color: var(--accent); }

.server-card-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.server-card-header h3 { font-size: 1rem; font-weight: 600; }

.server-card-body {
  padding: 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.server-card-body p { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }

.server-card-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; }

.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.55rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: border-color 0.15s;
  outline: none;
}

.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: var(--text-muted); }

.form-control-sm { padding: 0.35rem 0.625rem; font-size: 0.8rem; }

.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }

textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.3rem 0.625rem; font-size: 0.8rem; }

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary { background: var(--bg-hover); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-success { background: rgba(34,197,94,0.2); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.btn-success:hover { background: rgba(34,197,94,0.3); }

.btn-danger { background: rgba(239,68,68,0.2); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: rgba(239,68,68,0.3); }

.btn-warning { background: rgba(245,158,11,0.2); color: var(--yellow); border: 1px solid rgba(245,158,11,0.3); }
.btn-warning:hover { background: rgba(245,158,11,0.3); }

.btn-info { background: rgba(6,182,212,0.2); color: var(--cyan); border: 1px solid rgba(6,182,212,0.3); }
.btn-info:hover { background: rgba(6,182,212,0.3); }

.btn-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0.25rem; font-size: 1rem; }
.btn-close:hover { color: var(--red); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-primary { background: rgba(79,142,247,0.2); color: var(--accent); }
.badge-success { background: rgba(34,197,94,0.2); color: var(--green); }
.badge-danger { background: rgba(239,68,68,0.2); color: var(--red); }
.badge-warning { background: rgba(245,158,11,0.2); color: var(--yellow); }
.badge-info { background: rgba(6,182,212,0.2); color: var(--cyan); }
.badge-secondary { background: var(--bg-hover); color: var(--text-secondary); }

/* ===== ALERTS ===== */
.alert {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--green); }
.alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--red); }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: var(--yellow); }
.alert-info { background: rgba(79,142,247,0.1); border: 1px solid rgba(79,142,247,0.3); color: var(--accent); }

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: -1px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.65rem 1rem;
  border-radius: 8px 8px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== CONSOLE ===== */
.console-output {
  background: #0a0c12;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  height: 350px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.console-line {
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.console-time { color: var(--text-muted); flex-shrink: 0; }
.console-user { color: var(--purple); flex-shrink: 0; }
.console-cmd { color: var(--cyan); }
.console-resp { color: var(--green); width: 100%; padding-left: 1rem; }
.console-resp.error { color: var(--red); }

.console-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #0a0c12;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
}

.console-prompt { color: var(--green); font-family: monospace; font-size: 1rem; padding: 0 0.25rem; }
.console-input-row .form-control { background: transparent; border: none; padding: 0.25rem; }

.quick-commands { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* ===== PLAYER ROWS ===== */
.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.player-row:last-child { border-bottom: none; }

.player-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-actions { display: flex; gap: 0.5rem; }

.player-avatar { width: 32px; height: 32px; border-radius: 4px; image-rendering: pixelated; }
.player-avatar-sm { width: 24px; height: 24px; border-radius: 4px; image-rendering: pixelated; }
.player-name { font-weight: 600; }

/* ===== BAN ROWS ===== */
.ban-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.ban-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ban-info .text-muted { color: var(--text-muted); font-size: 0.875rem; }
.ban-info small { color: var(--text-muted); font-size: 0.75rem; }

/* ===== QUICK ACTIONS ===== */
.quick-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.quick-actions .form-control { flex: 1; min-width: 150px; }

/* ===== ACTION BUTTONS ===== */
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.action-btn {
  padding: 0.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s;
}

.action-btn.danger { background: rgba(239,68,68,0.15); color: var(--red); }
.action-btn.danger:hover { background: rgba(239,68,68,0.25); }
.action-btn.warning { background: rgba(245,158,11,0.15); color: var(--yellow); }
.action-btn.warning:hover { background: rgba(245,158,11,0.25); }
.action-btn.info { background: rgba(6,182,212,0.15); color: var(--cyan); }
.action-btn.info:hover { background: rgba(6,182,212,0.25); }
.action-btn i { font-size: 1.1rem; }

/* ===== ACTION BUTTONS LIST ===== */
.action-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ===== TABLES ===== */
.table-responsive { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }

/* ===== INFO TABLE ===== */
.info-table { width: 100%; border-collapse: collapse; }
.info-table td { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.info-table td:first-child { color: var(--text-muted); width: 140px; font-size: 0.875rem; }
.info-table tr:last-child td { border-bottom: none; }

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow);
}

.modal-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.modal-body { padding: 1.25rem; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.875rem 1.25rem;
  z-index: 2000;
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  max-width: 320px;
}

.toast-success { border-color: var(--green); color: var(--green); }
.toast-danger { border-color: var(--red); color: var(--red); }
.toast-info { border-color: var(--accent); color: var(--accent); }

/* ===== LOG LIST ===== */
.log-list { display: flex; flex-direction: column; gap: 0.5rem; }

.log-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.log-action { flex-shrink: 0; }
.log-details { flex: 1; color: var(--text-secondary); }
.log-details strong { color: var(--text-primary); }
.log-details small { display: block; color: var(--text-muted); }
.log-time { color: var(--text-muted); font-size: 0.75rem; white-space: nowrap; }

/* ===== TOOLS GRID ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

/* ===== LOGIN PAGE ===== */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
}

.login-container { width: 100%; max-width: 400px; padding: 1.5rem; }

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.login-header { text-align: center; margin-bottom: 2rem; }

.login-logo {
  width: 72px;
  height: 72px;
  background: var(--accent);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.login-header h1 { font-size: 1.5rem; font-weight: 700; }
.login-header p { color: var(--text-muted); margin-top: 0.25rem; }

/* ===== PLAYER HEADER ===== */
.player-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.player-body-render {
  width: 80px;
  image-rendering: pixelated;
}

/* ===== MISC ===== */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.9rem;
}

.empty-state i { display: block; margin-bottom: 1rem; color: var(--border); }

.empty-state a { color: var(--accent); text-decoration: none; }

.text-muted { color: var(--text-muted); }

.description { color: var(--text-muted); font-size: 0.8rem; }

code {
  background: rgba(255,255,255,0.05);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
  color: var(--cyan);
}

pre.nbt-data {
  background: #0a0c12;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-all;
}

.info-box {
  background: rgba(79,142,247,0.08);
  border: 1px solid rgba(79,142,247,0.25);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.info-box i { color: var(--accent); margin-right: 0.25rem; }

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  gap: 1rem;
  text-align: center;
  color: var(--text-muted);
}

.error-page h1 { font-size: 1.5rem; color: var(--text-primary); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .content { margin-left: 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== INVENTORY GRID ===== */
.inv-row {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.inv-slot {
  width: 48px;
  height: 48px;
  background: #1a1d2e;
  border: 2px solid #3a3f5c;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: default;
  transition: border-color 0.15s;
  image-rendering: pixelated;
}

.inv-slot.filled {
  border-color: #4a5080;
  background: #1e2235;
}

.inv-slot.filled:hover {
  border-color: var(--accent);
  background: #252840;
  z-index: 10;
}

.inv-slot img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
  object-fit: contain;
}

.inv-count {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
  pointer-events: none;
}

.inv-tooltip {
  position: absolute;
  background: #1a1a2e;
  border: 1px solid #6c3fa0;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.inv-tooltip strong { color: #fff; }
.inv-tooltip small  { color: var(--text-muted); }

.stat-icon.orange { background: rgba(249,115,22,0.15); color: #f97316; }

/* ===== LOGS PAGE ===== */
.log-type-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  background: var(--bg-secondary);
}

.log-tab {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s;
}

.log-tab:hover { border-color: var(--accent); color: var(--text-primary); }
.log-tab.active { background: var(--accent); border-color: var(--accent); color: white; }

.log-entry {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.82rem;
  transition: background 0.1s;
}

.log-entry:hover { background: var(--bg-hover); }

.log-icon { flex-shrink: 0; font-size: 0.9rem; }
.log-time { color: var(--text-muted); white-space: nowrap; flex-shrink: 0; font-size: 0.75rem; }
.log-player { color: var(--accent); font-weight: 600; flex-shrink: 0; }
.log-msg { color: var(--text-primary); word-break: break-word; }

.log-join    .log-msg { color: #22c55e; }
.log-leave   .log-msg { color: #ef4444; }
.log-death   .log-msg { color: #94a3b8; }
.log-kill    .log-msg { color: #f97316; }
.log-advancement .log-msg { color: #f59e0b; }
.log-start   .log-msg { color: #4f8ef7; }
.log-stop    .log-msg { color: #a855f7; }
.log-crash   .log-msg { color: #ef4444; font-weight: 600; }
.log-chat    .log-msg { color: #06b6d4; }

.perf-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.perf-badge {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.perf-badge span { color: var(--accent); font-size: 1.4rem; margin-right: 0.25rem; }
