/* ==========================================================================
   ANERA FIVEM ADMIN PANEL - CSS
   Matches Main Website UI Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,600;0,700;0,800;1,700&family=Orbitron:wght@700;800;900&family=Outfit:wght@400;500;600;700;800&family=Unbounded:wght@700;800;900&display=swap');

:root {
  /* Main Website Colors */
  --primary-cyan: #00d2ff;
  --secondary-blue: #005f73;
  --primary-green: #00ff87;
  --secondary-green: #00a852;
  --primary-orange: #ff9f43;

  /* Dark Slate Theme */
  --bg-main: #0c1017;
  --bg-surface: #121824;
  --bg-surface-elevated: #182232;
  --bg-glass-base: rgba(18, 24, 38, 0.72);
  --bg-glass-card: rgba(22, 30, 46, 0.65);
  --bg-glass-solid: rgba(26, 36, 54, 0.88);
  --bg-glass-hover: rgba(32, 44, 66, 0.75);

  /* Glass Borders */
  --border-glass: rgba(0, 210, 255, 0.16);
  --border-glass-hover: rgba(0, 255, 135, 0.4);
  --border-glass-subtle: rgba(255, 255, 255, 0.08);

  /* Neon Shadows */
  --glow-cyan: 0 0 25px rgba(0, 210, 255, 0.35);
  --glow-green: 0 0 25px rgba(0, 255, 135, 0.35);
  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-card-hover: 0 20px 48px -8px rgba(0, 210, 255, 0.25), inset 0 1px 0 rgba(0, 255, 135, 0.3);

  /* Text */
  --text-pure: #ffffff;
  --text-primary: #e6edf3;
  --text-secondary: #9aa7b8;
  --text-muted: #64748b;
  --text-cyan: #38e1ff;
  --text-green: #2bfba0;

  /* Fonts */
  --font-brand: 'Unbounded', 'Orbitron', sans-serif;
  --font-heading: 'Chakra Petch', 'Rajdhani', sans-serif;
  --font-body: 'Outfit', 'Inter', sans-serif;

  /* Layout */
  --sidebar-width: 280px;
  --topbar-height: 64px;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient Background */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 255, 135, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */

.admin-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: var(--bg-glass-base);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-pure);
}

.admin-brand img {
  width: 40px;
  height: 40px;
}

.brand-text {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.brand-sub {
  font-size: 0.65rem;
  color: var(--primary-cyan);
  margin-left: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.topbar-center {
  display: flex;
  align-items: center;
}

.server-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: rgba(0, 255, 135, 0.1);
  border: 1px solid rgba(0, 255, 135, 0.3);
  border-radius: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

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

.status-dot.orange {
  background: var(--primary-orange);
  box-shadow: 0 0 8px var(--primary-orange);
}

.status-text {
  font-size: 0.85rem;
  color: var(--primary-green);
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.user-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.admin-layout {
  display: flex;
  margin-top: var(--topbar-height);
  min-height: calc(100vh - var(--topbar-height));
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-glass-base);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--topbar-height);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 99;
}

.sidebar-nav {
  flex: 1;
  padding: 1.5rem 0;
}

.sidebar-section {
  margin-bottom: 1.75rem;
}

.sidebar-heading {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding: 0.5rem 1.5rem;
  text-transform: uppercase;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: rgba(0, 210, 255, 0.1);
  color: var(--primary-cyan);
  border-left-color: var(--primary-cyan);
}

.sidebar-link i {
  width: 22px;
  text-align: center;
  font-size: 1rem;
}

.sidebar-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-glass);
}

.btn-back-panel {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.btn-back-panel:hover {
  color: var(--primary-cyan);
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.admin-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 2rem;
  min-height: calc(100vh - var(--topbar-height));
}

.admin-tab {
  display: none;
}

.admin-tab.active {
  display: block;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.content-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.content-title i {
  color: var(--primary-cyan);
}

.content-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   SEARCH & FORM ELEMENTS
   ========================================================================== */

.search-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 0.6rem 1rem;
}

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

.search-box input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  width: 220px;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.select-player {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  min-width: 200px;
}

.select-player:focus {
  border-color: var(--primary-cyan);
}

.input-reason {
  flex: 1;
  min-width: 200px;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
}

.input-reason:focus {
  border-color: var(--primary-cyan);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-blue));
  color: white;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 210, 255, 0.45);
}

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

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: white;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(239, 68, 68, 0.45);
}

.btn-warning {
  background: linear-gradient(135deg, var(--primary-orange), #ff6b00);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 159, 67, 0.3);
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 159, 67, 0.45);
}

.btn-refresh {
  background: var(--bg-glass-card);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-refresh:hover {
  background: var(--bg-glass-hover);
}

.btn-sm {
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
}

.btn-view {
  background: rgba(0, 210, 255, 0.12);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 210, 255, 0.25);
}

.btn-inventory {
  background: rgba(0, 255, 135, 0.12);
  color: var(--primary-green);
  border: 1px solid rgba(0, 255, 135, 0.25);
}

.btn-troll {
  background: rgba(255, 159, 67, 0.12);
  color: var(--primary-orange);
  border: 1px solid rgba(255, 159, 67, 0.25);
}

.btn-kick {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ==========================================================================
   PLAYER CARDS
   ========================================================================== */

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.player-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.player-card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.player-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.player-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  font-size: 1.2rem;
}

.player-info {
  flex: 1;
}

.player-name {
  font-weight: 700;
  font-size: 1.05rem;
  display: block;
}

.player-id {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.player-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.player-status.online {
  background: var(--primary-green);
  box-shadow: 0 0 10px var(--primary-green);
}

.player-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-glass-subtle);
  border-bottom: 1px solid var(--border-glass-subtle);
  margin-bottom: 1rem;
}

.detail-item {
  text-align: center;
}

.detail-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.detail-value {
  font-size: 0.85rem;
  font-weight: 600;
}

.player-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* ==========================================================================
   SCREEN VIEW
   ========================================================================== */

.screen-view-container {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  overflow: hidden;
}

.screen-view-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
}

.screen-view-display {
  padding: 1.5rem;
  min-height: 450px;
}

.screen-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--text-muted);
  text-align: center;
}

.screen-placeholder i {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  opacity: 0.4;
}

.screen-placeholder p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.placeholder-note {
  font-size: 0.75rem;
  opacity: 0.5;
  font-style: italic;
}

/* ==========================================================================
   INVENTORY
   ========================================================================== */

.inventory-container {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  overflow: hidden;
}

.inventory-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
}

.inventory-editor {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(120px, 0.6fr) auto auto;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 0;
}

.inventory-editor input,
.inventory-editor select,
.select-player {
  width: 100%;
  background: rgba(12, 16, 23, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 0.8rem 0.95rem;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.inventory-editor input:focus,
.inventory-editor select:focus,
.select-player:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.12);
}

.inventory-grid {
  padding: 1.5rem;
  min-height: 450px;
}

.inventory-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.inventory-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(16, 22, 33, 0.9);
  border: 1px solid var(--border-glass-subtle);
  border-radius: 14px;
  padding: 0.9rem 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.18), rgba(0, 255, 135, 0.14));
  border: 1px solid rgba(0, 210, 255, 0.2);
  overflow: hidden;
  flex-shrink: 0;
}

.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-thumb i {
  font-size: 1.1rem;
  color: var(--primary-cyan);
}

.item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.item-name {
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.inventory-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--text-muted);
  text-align: center;
}

.inventory-placeholder i {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  opacity: 0.4;
}

.inventory-placeholder p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   TROLL OPTIONS
   ========================================================================== */

.troll-container {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  overflow: hidden;
}

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

.troll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem;
}

.troll-card {
  background: var(--bg-glass-base);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.troll-card:hover {
  border-color: rgba(255, 159, 67, 0.4);
  box-shadow: 0 8px 30px rgba(255, 159, 67, 0.15);
  transform: translateY(-3px);
}

.troll-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 159, 67, 0.12);
  border: 1px solid rgba(255, 159, 67, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary-orange);
  font-size: 1.3rem;
}

.troll-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.troll-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.btn-troll-action {
  background: rgba(255, 159, 67, 0.12);
  color: var(--primary-orange);
  border: 1px solid rgba(255, 159, 67, 0.25);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-troll-action:hover {
  background: rgba(255, 159, 67, 0.25);
  border-color: var(--primary-orange);
  box-shadow: 0 4px 15px rgba(255, 159, 67, 0.3);
}

/* ==========================================================================
   ANTICHEAT
   ========================================================================== */

.anticheat-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.anticheat-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.anticheat-stat-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
}

.anticheat-stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.3rem;
}

.anticheat-stat-card .stat-icon.cyan {
  background: rgba(0, 210, 255, 0.12);
  color: var(--primary-cyan);
}

.anticheat-stat-card .stat-icon.green {
  background: rgba(0, 255, 135, 0.12);
  color: var(--primary-green);
}

.anticheat-stat-card .stat-icon.orange {
  background: rgba(255, 159, 67, 0.12);
  color: var(--primary-orange);
}

.anticheat-stat-card .stat-icon.red {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.anticheat-stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.anticheat-stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.anticheat-flagged {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  overflow: hidden;
}

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

.anticheat-flagged-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.anticheat-flagged-header h3 i {
  color: var(--primary-orange);
}

.flagged-list {
  padding: 1rem 1.5rem;
}

.flagged-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border-glass-subtle);
}

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

.flagged-player {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flagged-player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
}

.flagged-info {
  display: flex;
  flex-direction: column;
}

.flagged-name {
  font-weight: 600;
  font-size: 0.95rem;
}

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

.flagged-severity {
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.flagged-severity.high {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.flagged-severity.medium {
  background: rgba(255, 159, 67, 0.15);
  color: var(--primary-orange);
}

.flagged-severity.low {
  background: rgba(0, 210, 255, 0.15);
  color: var(--primary-cyan);
}

/* ==========================================================================
   KICKS & BANS
   ========================================================================== */

.kicks-container {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 1.5rem;
}

.kick-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.ban-list {
  border-top: 1px solid var(--border-glass-subtle);
  padding-top: 1.5rem;
}

.ban-list h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ban-list-placeholder {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.ban-list-placeholder i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

/* ==========================================================================
   ANNOUNCEMENTS
   ========================================================================== */

.announcements-container {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 1.5rem;
}

.announcement-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-announcement {
  background: var(--bg-glass-base);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  outline: none;
}

.input-announcement:focus {
  border-color: var(--primary-cyan);
}

.announcement-actions {
  display: flex;
  gap: 1rem;
}

/* ==========================================================================
   SERVER LOGS
   ========================================================================== */

.logs-container {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  overflow: hidden;
}

.logs-display {
  background: rgba(10, 14, 23, 0.8);
  padding: 1.25rem;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.8rem;
  line-height: 1.9;
  max-height: 500px;
  overflow-y: auto;
}

.log-entry {
  color: var(--text-secondary);
}

.log-time {
  color: var(--text-muted);
  opacity: 0.7;
}

.log-type {
  font-weight: 600;
}

.log-type.info {
  color: var(--primary-cyan);
}

.log-type.warning {
  color: var(--primary-orange);
}

.log-type.error {
  color: #ef4444;
}

/* ==========================================================================
   RESOURCES
   ========================================================================== */

.resources-container {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 14px);
  overflow: hidden;
}

.resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass-subtle);
}

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

.resource-name {
  font-weight: 600;
  font-family: 'Consolas', monospace;
  font-size: 0.9rem;
}

.resource-status {
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.resource-status.running {
  background: rgba(0, 255, 135, 0.12);
  color: var(--primary-green);
}

.resource-status.stopped {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* ==========================================================================
   SETTINGS
   ========================================================================== */

.settings-container {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 1.5rem;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-glass-subtle);
}

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

.setting-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.setting-input {
  background: var(--bg-glass-base);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-glass-base);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  transition: 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--primary-cyan);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
  background: var(--primary-cyan);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  background: var(--bg-glass-solid);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 300px;
  box-shadow: var(--shadow-card);
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-color: rgba(0, 255, 135, 0.4);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
}

.toast.info {
  border-color: rgba(0, 210, 255, 0.4);
}

.toast-icon {
  font-size: 1.1rem;
}

.toast.success .toast-icon {
  color: var(--primary-green);
}

.toast.error .toast-icon {
  color: #ef4444;
}

.toast.info .toast-icon {
  color: var(--primary-cyan);
}

.toast-message {
  flex: 1;
  font-size: 0.9rem;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-content {
    margin-left: 0;
  }

  .players-grid {
    grid-template-columns: 1fr;
  }

  .anticheat-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-topbar {
    padding: 0 1rem;
  }

  .brand-text {
    font-size: 1rem;
  }

  .topbar-center {
    display: none;
  }

  .content-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-actions {
    width: 100%;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .troll-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kick-form {
    flex-direction: column;
  }

  .input-reason {
    width: 100%;
  }

  .anticheat-stats {
    grid-template-columns: 1fr;
  }

  .flagged-item {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* ==========================================================================
   LOADING & EMPTY STATES
   ========================================================================== */

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.loading-spinner i {
  font-size: 1.5rem;
  color: var(--primary-cyan);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-muted);
  text-align: center;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state p {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.empty-state span {
  font-size: 0.85rem;
  opacity: 0.7;
}

.empty-state.error i {
  color: #ef4444;
}

.empty-state.error p {
  color: #ef4444;
}

/* ==========================================================================
   RESOURCE ACTION BUTTONS
   ========================================================================== */

.resources-list {
  padding: 0;
}

.resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass-subtle);
  transition: background 0.2s ease;
}

.resource-item:hover {
  background: var(--bg-glass-hover);
}

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

.resource-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

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

.btn-start {
  background: rgba(0, 255, 135, 0.12);
  color: var(--primary-green);
  border: 1px solid rgba(0, 255, 135, 0.25);
}

.btn-start:hover {
  background: rgba(0, 255, 135, 0.25);
  border-color: var(--primary-green);
}

.btn-start:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-stop {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-stop:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

.btn-restart {
  background: rgba(255, 159, 67, 0.12);
  color: var(--primary-orange);
  border: 1px solid rgba(255, 159, 67, 0.25);
}

.btn-restart:hover {
  background: rgba(255, 159, 67, 0.25);
  border-color: var(--primary-orange);
}

/* ==========================================================================
   BAN LIST
   ========================================================================== */

.ban-list-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ban-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-glass-base);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.ban-item:hover {
  border-color: rgba(239, 68, 68, 0.3);
}

.ban-item.expired {
  opacity: 0.6;
}

.ban-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ban-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.ban-reason {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

.btn-unban {
  background: rgba(0, 210, 255, 0.12);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-unban:hover {
  background: rgba(0, 210, 255, 0.25);
  border-color: var(--primary-cyan);
}

/* ==========================================================================
   INVENTORY ITEMS
   ========================================================================== */

.inventory-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.inventory-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-glass-base);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.inventory-item:hover {
  border-color: var(--border-glass-hover);
}

.item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 255, 135, 0.12);
  border: 1px solid rgba(0, 255, 135, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
}

.item-info {
  display: flex;
  flex-direction: column;
}

.item-name {
  font-weight: 600;
  font-size: 0.9rem;
}

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

/* ==========================================================================
   LOG ENTRIES
   ========================================================================== */

.log-admin {
  color: var(--primary-cyan);
  font-weight: 600;
}

.log-details {
  color: var(--text-secondary);
}