/* ═══════════════════════════════════════════════════════════════════════════
   Cousin RCON Web Interface — ARK Dark Theme
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Root / palette ─────────────────────────────────────────────────────── */
:root {
  --ark-orange:      #e8821a;
  --ark-orange-dim:  #b5600e;
  --ark-orange-glow: rgba(232, 130, 26, 0.18);
  --ark-dark-bg:     #0e0f11;
  --ark-card-bg:     #14161a;
  --ark-card-2:      #1a1d23;
  --ark-border:      #2b2f38;
  --ark-text:        #d4d8e0;
  --ark-text-muted:  #6b7280;
  --ark-online:      #22c55e;
  --ark-offline:     #6b7280;
  --ark-alive:       #4ade80;
  --ark-dead:        #f87171;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ark-dark-bg);
  color: var(--ark-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  min-height: 100vh;
}

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar            { width: 8px; height: 8px; }
::-webkit-scrollbar-track      { background: var(--ark-dark-bg); }
::-webkit-scrollbar-thumb      { background: var(--ark-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover{ background: var(--ark-orange-dim); }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.text-orange   { color: var(--ark-orange) !important; }
.border-orange { border-color: var(--ark-orange) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════════════════ */
.navbar-cws {
  background: linear-gradient(90deg, #0a0b0d 0%, #13161d 100%);
  border-bottom: 2px solid var(--ark-orange);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  position: sticky;
  top: 0;
  z-index: 1040;
}

.navbar-cws .navbar-brand {
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.navbar-user {
  font-size: 0.78rem;
  color: var(--ark-text-muted);
  letter-spacing: 0.02em;
}

/* ── Navbar buttons ──────────────────────────────────────────────────────── */
.btn-navbar-action {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--ark-border);
  background: var(--ark-card-2);
  color: var(--ark-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-navbar-action:hover {
  border-color: var(--ark-orange-dim);
  color: var(--ark-orange);
  background: var(--ark-orange-glow);
}

/* Discord Linker DB button — yellow */
#btn-discord-db {
  border: 1px solid #ca8a04 !important;
  background: #facc15 !important;
  color: #000 !important;
  font-weight: 600;
}
#btn-discord-db:hover {
  background: #eab308 !important;
  border-color: #a16207 !important;
  color: #000 !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

/* Bans button — orange */
#btn-open-bans {
  border: 1px solid var(--ark-orange-dim) !important;
  background: var(--ark-orange) !important;
  color: #000 !important;
  font-weight: 600;
}
#btn-open-bans:hover {
  background: var(--ark-orange-dim) !important;
  border-color: #8a4a08 !important;
  color: #000 !important;
  box-shadow: 0 0 10px rgba(232, 130, 26, 0.4);
}

/* Scheduler button — purple */
#btn-scheduler {
  border: 1px solid #7c3aed !important;
  background: #8b5cf6 !important;
  color: #fff !important;
  font-weight: 600;
}
#btn-scheduler:hover {
  background: #7c3aed !important;
  border-color: #6d28d9 !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

/* Change Password button — blue */
#btn-change-password {
  border: 1px solid #1d4ed8 !important;
  background: #3b82f6 !important;
  color: #000 !important;
  font-weight: 600;
}
#btn-change-password:hover {
  background: #2563eb !important;
  border-color: #1e40af !important;
  color: #000 !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.btn-navbar-store {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid #16a34a !important;
  background: #22c55e !important;
  color: #000 !important;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-navbar-store:hover {
  background: #16a34a !important;
  border-color: #15803d !important;
  color: #000 !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.btn-navbar-logout {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid #b91c1c !important;
  background: #ef4444 !important;
  color: #000 !important;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-navbar-logout:hover {
  background: #dc2626 !important;
  border-color: #991b1b !important;
  color: #000 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* ══════════════════════════════════════════════════════════════════════════
   SERVER TAB BAR
══════════════════════════════════════════════════════════════════════════ */
.server-tab-bar {
  background: var(--ark-card-bg);
  border-bottom: 1px solid var(--ark-border);
  min-height: 46px;
}

.server-nav-tab {
  background: transparent;
  border: 1px solid var(--ark-border);
  border-bottom: none;
  color: var(--ark-text-muted);
  border-radius: 6px 6px 0 0;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  position: relative;
  bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.server-nav-tab:hover {
  background: var(--ark-orange-glow);
  color: var(--ark-orange);
  border-color: var(--ark-orange-dim);
}

.server-nav-tab.active {
  background: var(--ark-card-2);
  color: var(--ark-orange);
  border-color: var(--ark-orange);
  border-bottom-color: var(--ark-card-2);
  box-shadow: 0 -2px 8px var(--ark-orange-glow);
}

.btn-add-server {
  background: transparent;
  border: 1px dashed var(--ark-orange-dim);
  color: var(--ark-orange);
  border-radius: 6px 6px 0 0;
  padding: 6px 12px;
  font-size: 0.82rem;
  transition: background 0.15s;
  position: relative;
  bottom: -1px;
}
.btn-add-server:hover {
  background: var(--ark-orange-glow);
  border-style: solid;
}

/* ── Server status dot ───────────────────────────────────────────────────── */
.server-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s;
}
.dot-unknown { background: #4b5563; }

@keyframes dot-pulse-online {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.dot-online {
  background: var(--ark-online);
  animation: dot-pulse-online 2s ease-out infinite;
}

@keyframes dot-pulse-offline {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
.dot-offline {
  background: #ef4444;
  animation: dot-pulse-offline 2.5s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════════════════════
   SERVER PANELS
══════════════════════════════════════════════════════════════════════════ */
.server-panel {
  background: var(--ark-card-2);
  border: 1px solid var(--ark-border);
  border-top-color: var(--ark-orange);
  border-radius: 0 8px 8px 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════════════════ */
.btn-orange {
  background: var(--ark-orange);
  color: #fff;
  border: 1px solid var(--ark-orange-dim);
  font-weight: 600;
}
.btn-orange:hover, .btn-orange:focus {
  background: var(--ark-orange-dim);
  color: #fff;
  box-shadow: 0 0 12px var(--ark-orange-glow);
}
.btn-orange:disabled {
  background: #5a3a10;
  border-color: #3a2408;
  color: #a0692a;
}

.btn-outline-light {
  border-color: var(--ark-border);
  color: var(--ark-text);
}
.btn-outline-light:hover {
  background: var(--ark-border);
  color: #fff;
}

.btn-xs {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--ark-border);
  background: var(--ark-card-2);
  color: var(--ark-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-xs:hover {
  border-color: var(--ark-orange-dim);
  color: var(--ark-text);
}

/* ══════════════════════════════════════════════════════════════════════════
   FORM INPUTS
══════════════════════════════════════════════════════════════════════════ */
.bg-dark-input,
.form-control.bg-dark-input,
.form-select.bg-dark-input {
  background-color: #0e1014 !important;
  border-color: var(--ark-border) !important;
  color: var(--ark-text) !important;
}
.bg-dark-input:focus,
.form-control.bg-dark-input:focus,
.form-select.bg-dark-input:focus {
  border-color: var(--ark-orange) !important;
  box-shadow: 0 0 0 2px var(--ark-orange-glow) !important;
  outline: none;
}
.bg-dark-input::placeholder {
  color: var(--ark-text-muted) !important;
}

.input-group-text {
  border-color: var(--ark-border) !important;
  color: var(--ark-text-muted);
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION DIVIDER (modal)
══════════════════════════════════════════════════════════════════════════ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ark-text-muted);
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ark-border);
}

/* ══════════════════════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════════════════════ */
.bg-dark-card {
  background-color: var(--ark-card-bg) !important;
}

.modal-content {
  border-radius: 10px;
}

.modal-header {
  background: linear-gradient(90deg, #0a0b0d 0%, #14161a 100%);
}

/* ══════════════════════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════════════════════ */
#empty-state {
  background: var(--ark-card-bg);
  border: 1px dashed var(--ark-border);
  border-radius: 12px;
  padding: 60px 20px;
  margin: 20px 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════════════════════ */
.toast {
  min-width: 280px;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   VERTICAL RULE (toolbar separator)
══════════════════════════════════════════════════════════════════════════ */
.vr {
  background-color: var(--ark-border);
  width: 1px;
  align-self: stretch;
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   FORM CHECK SWITCH
══════════════════════════════════════════════════════════════════════════ */
.form-check-input:checked {
  background-color: var(--ark-orange) !important;
  border-color: var(--ark-orange-dim) !important;
}
.form-check-input:focus {
  box-shadow: 0 0 0 2px var(--ark-orange-glow) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   RCON TAB
══════════════════════════════════════════════════════════════════════════ */
.rcon-section {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--ark-border);
  border-radius: 8px;
  padding: 14px 16px;
}

.rcon-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ark-text-muted);
  margin-bottom: 10px;
}

/* Command preview code block */
.rcon-preview {
  background: #080a0c;
  border: 1px solid var(--ark-border);
  color: #60a5fa;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.78rem;
  word-break: break-all;
  white-space: pre-wrap;
  min-height: 28px;
}

/* Response log */
.rcon-log {
  background: #080a0c;
  border: 1px solid var(--ark-border);
  border-radius: 6px;
  padding: 8px 10px;
  height: 380px;
  overflow-y: auto;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.75rem;
}

.rcon-log-entry {
  padding: 4px 0;
  border-bottom: 1px solid rgba(43,47,56,0.4);
  line-height: 1.5;
}
.rcon-log-entry:last-child { border-bottom: none; }

.rcon-log-ts       { color: var(--ark-text-muted); font-size: 0.68rem; margin-right: 6px; }
.rcon-log-cmd      { color: var(--ark-orange); font-weight: 600; }
.rcon-log-response {
  color: var(--ark-text);
  margin-top: 2px;
  padding-left: 12px;
  border-left: 2px solid var(--ark-border);
  white-space: pre-wrap;
  word-break: break-word;
}
.rcon-log-error { color: #f87171; }
.rcon-log-ok    { color: #4ade80; }

/* RCON param row */
.rcon-param-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.rcon-param-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ark-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rcon-param-hint {
  font-size: 0.68rem;
  color: var(--ark-text-muted);
  margin-top: 2px;
}

/* Send-all wrap */
.rcon-send-all-wrap {
  background: rgba(234,179,8,0.05);
  border: 1px solid rgba(234,179,8,0.2);
  border-radius: 6px;
  padding: 8px 12px;
}

/* ══════════════════════════════════════════════════════════════════════════
   CUSTOM RCON COMMANDS
══════════════════════════════════════════════════════════════════════════ */
.custom-cmd-row {
  transition: background 0.1s;
}
.custom-cmd-row:hover {
  background: rgba(255,255,255,0.02);
}

/* ══════════════════════════════════════════════════════════════════════════
   PCS SPAWN DINO
══════════════════════════════════════════════════════════════════════════ */
.pcs-mod-label {
  font-size: 0.72rem;
  color: #a78bfa;
  font-style: italic;
  margin-bottom: 8px;
  display: block;
}

.pcs-stat-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.pcs-stat-label {
  font-size: 0.72rem;
  color: var(--ark-text-muted);
  width: 68px;
  flex-shrink: 0;
}

.pcs-stat-mode {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--ark-border);
  background: var(--ark-card-2);
  color: var(--ark-text-muted);
  cursor: pointer;
  transition: all 0.12s;
  min-width: 48px;
  text-align: center;
}

.pcs-stat-mode:not(.random) {
  background: rgba(96,165,250,0.15);
  border-color: #60a5fa;
  color: #60a5fa;
}

.pcs-stat-mode.random {
  background: var(--ark-card-2);
  border-color: var(--ark-border);
  color: var(--ark-text-muted);
}

.pcs-stat-mode:hover {
  border-color: var(--ark-orange-dim);
  color: var(--ark-text);
}

.pcs-stat-input {
  width: 70px;
}

.pcs-total-level {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ark-orange);
  padding: 4px 10px;
  background: rgba(232,130,26,0.1);
  border: 1px solid var(--ark-orange-dim);
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════
   SEARCHABLE COMBOBOX (blueprint selector)
══════════════════════════════════════════════════════════════════════════ */
.cws-searchable-wrap {
  position: relative;
}

.cws-searchable-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0e1014;
  border: 1px solid var(--ark-orange-dim);
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 1055;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

.cws-searchable-option {
  padding: 6px 10px;
  font-size: 0.78rem;
  color: var(--ark-text);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.1s;
}

.cws-searchable-option:hover {
  background: var(--ark-orange-glow);
  color: var(--ark-orange);
}

.cws-custom-opt {
  color: #60a5fa;
  border-bottom: 1px solid var(--ark-border);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════════════════
   SERVER NOTES
══════════════════════════════════════════════════════════════════════════ */
.server-notes-display {
  font-size: 0.75rem;
  color: var(--ark-text-muted);
  background: rgba(232,130,26,0.05);
  border: 1px solid rgba(232,130,26,0.15);
  border-radius: 4px;
  padding: 5px 10px;
  margin-top: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════════
   LIVE PLAYER LIST
══════════════════════════════════════════════════════════════════════════ */
.player-list-section {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--ark-border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 12px;
}

.player-list-wrap {
  max-height: 220px;
  overflow-y: auto;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
  transition: background 0.1s;
}
.player-row:hover {
  background: rgba(255,255,255,0.04);
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-name {
  color: var(--ark-text);
  font-weight: 500;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-eos-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.player-eos {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.74rem;
  color: var(--ark-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.player-copy-btn {
  padding: 1px 4px !important;
  flex-shrink: 0;
  color: var(--ark-text-muted) !important;
  border-color: transparent !important;
  background: transparent !important;
}
.player-copy-btn:hover {
  color: var(--ark-text) !important;
  background: rgba(255,255,255,0.06) !important;
}

.player-kick-btn {
  background: #ef4444 !important;
  border-color: #b91c1c !important;
  color: #000 !important;
  flex-shrink: 0;
}
.player-kick-btn:hover {
  background: #dc2626 !important;
  border-color: #991b1b !important;
  color: #000 !important;
  box-shadow: 0 0 6px rgba(239,68,68,0.4);
}

.player-msg-btn {
  background: #facc15 !important;
  border-color: #ca8a04 !important;
  color: #000 !important;
  flex-shrink: 0;
}
.player-msg-btn:hover {
  background: #eab308 !important;
  border-color: #a16207 !important;
  color: #000 !important;
  box-shadow: 0 0 6px rgba(250,204,21,0.4);
}

.player-empty-msg {
  text-align: center;
  color: var(--ark-text-muted);
  font-size: 0.8rem;
  padding: 16px 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   SCHEDULED COMMANDS
══════════════════════════════════════════════════════════════════════════ */
.sched-cmd-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--ark-border);
  background: rgba(0,0,0,0.12);
  margin-bottom: 6px;
  transition: background 0.1s;
}
.sched-cmd-row:hover {
  background: rgba(255,255,255,0.02);
}

.sched-cmd-info {
  flex: 1;
  min-width: 0;
}

.sched-cmd-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ark-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sched-cmd-meta {
  font-size: 0.7rem;
  color: var(--ark-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sched-badge-enabled  { background: rgba(34,197,94,0.15);  color: #4ade80; border: 1px solid rgba(34,197,94,0.3);  }
.sched-badge-disabled { background: rgba(107,114,128,0.15); color: #9ca3af; border: 1px solid rgba(107,114,128,0.3); }
.sched-badge-once     { background: rgba(59,130,246,0.15);  color: #60a5fa; border: 1px solid rgba(59,130,246,0.3);  }
.sched-badge-recurring{ background: rgba(168,85,247,0.15);  color: #c084fc; border: 1px solid rgba(168,85,247,0.3);  }

.sched-result-ok    { color: #4ade80; font-size: 0.68rem; }
.sched-result-error { color: #f87171; font-size: 0.68rem; }
.sched-result-never { color: var(--ark-text-muted); font-size: 0.68rem; }

/* ══════════════════════════════════════════════════════════════════════════
   BAN MANAGER
══════════════════════════════════════════════════════════════════════════ */
.ban-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(239,68,68,0.2);
  background: rgba(239,68,68,0.05);
  margin-bottom: 6px;
  transition: background 0.1s;
}
.ban-row:hover {
  background: rgba(239,68,68,0.1);
}

.ban-row-info {
  flex: 1;
  min-width: 0;
}

.ban-row-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ark-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ban-row-meta {
  font-size: 0.7rem;
  color: var(--ark-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ban-badge-lifetime { background: rgba(239,68,68,0.2);   color: #f87171; border: 1px solid rgba(239,68,68,0.4);   }
.ban-badge-timed    { background: rgba(251,146,60,0.15); color: #fb923c; border: 1px solid rgba(251,146,60,0.3);  }
.ban-badge-expired  { background: rgba(107,114,128,0.15); color: #9ca3af; border: 1px solid rgba(107,114,128,0.3); }
.ban-badge-repeat   { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.3);   }

.player-ban-btn {
  background: var(--ark-orange) !important;
  border-color: var(--ark-orange-dim) !important;
  color: #000 !important;
  flex-shrink: 0;
}
.player-ban-btn:hover {
  background: var(--ark-orange-dim) !important;
  border-color: #8a4a08 !important;
  color: #000 !important;
  box-shadow: 0 0 6px rgba(232,130,26,0.4);
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤768px) ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .server-tab-bar {
    padding: 6px 8px 0;
  }
  .server-panel {
    padding: 10px;
    border-radius: 0 0 8px 8px;
  }
  .rcon-log {
    height: 240px;
  }
  /* Modals: ensure they don't have excessive margins */
  .modal-fullscreen-sm-down .modal-body {
    padding: 1rem;
  }
}

/* ── Phone (≤575px) ──────────────────────────────────────────────────────── */
@media (max-width: 575px) {
  /* Navbar */
  .navbar-cws {
    padding: 6px 12px;
  }
  .navbar-cws .navbar-brand {
    font-size: 0.9rem;
  }

  /* Tighten up the server tab bar */
  .server-tab-bar {
    padding: 4px 6px 0;
    gap: 4px;
  }
  .server-nav-tab {
    padding: 5px 10px;
    font-size: 0.76rem;
  }
  .btn-add-server {
    padding: 5px 10px;
    font-size: 0.76rem;
  }

  /* Server panels */
  .server-panel {
    padding: 8px;
    border-radius: 0 0 6px 6px;
    margin-bottom: 10px;
  }

  /* RCON sections */
  .rcon-section {
    padding: 10px 12px;
  }
  .rcon-log {
    height: 200px;
  }

  /* Container padding */
  .container-fluid.px-3 {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Make modal body comfortable on small screens */
  .modal-fullscreen-sm-down .modal-body {
    padding: 12px;
  }
  .modal-fullscreen-sm-down .modal-header,
  .modal-fullscreen-sm-down .modal-footer {
    padding: 10px 12px;
  }

  /* Full-width buttons in modal footers on mobile */
  .modal-fullscreen-sm-down .modal-footer {
    flex-direction: column-reverse;
    gap: 6px;
  }
  .modal-fullscreen-sm-down .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
  .modal-fullscreen-sm-down .modal-footer .me-auto {
    width: 100%;
    margin-right: 0 !important;
  }

  /* Empty state */
  #empty-state {
    padding: 30px 16px;
  }

  /* Toast full-width on mobile */
  .toast-container {
    left: 0 !important;
    right: 0 !important;
    padding: 8px !important;
  }
  .toast {
    min-width: unset;
    width: 100%;
  }
}
