/* Admin & Staff Management Enhancements for Control Panel */
:root {
  --admin-cyan: #00eaff;
  --admin-pink: #ed62bf;
  --admin-glow: rgba(0, 234, 255, 0.15);
  --admin-card-bg: #151a24;
  --admin-card-border: #28303f;
}

/* Stat Cards on Overview */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-card-border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: #3e4b63;
}
.stat-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.stat-sub {
  font-size: 11px;
  color: #55d9a2;
}

/* Quick Action Buttons on Overview */
.quick-actions-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.action-tile-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--admin-card-border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.action-tile-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
  color: #fff;
}
.action-tile-btn.btn-play-action {
  background: linear-gradient(135deg, rgba(232, 28, 90, 0.25) 0%, rgba(255, 41, 148, 0.15) 100%);
  border-color: rgba(232, 28, 90, 0.5);
  color: #fff;
}
.action-tile-btn.btn-play-action:hover {
  background: linear-gradient(135deg, #e81c5a 0%, #ff2994 100%);
  box-shadow: 0 4px 20px rgba(232, 28, 90, 0.4);
}
.action-tile-btn.btn-discord-action {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.4);
}
.action-tile-btn.btn-discord-action:hover {
  background: #5865f2;
  border-color: #5865f2;
}

/* Department Badge */
.dept-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Applications Cards */
.applications-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.application-entry-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-card-border);
  border-radius: 14px;
  padding: 22px;
  transition: all 0.2s ease;
}
.application-entry-card:hover {
  border-color: #3b475c;
  box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}
.app-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.app-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.app-candidate-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.app-date {
  font-size: 12px;
  color: var(--muted);
}
.app-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10141c;
  border: 1px solid #283040;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: #cbd5e1;
}
.meta-pill code {
  color: #00eaff;
  font-family: monospace;
}
.app-concept-box {
  background: #0f131a;
  border: 1px solid #242c3b;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.app-concept-box h4 {
  margin: 0 0 6px 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.app-concept-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
}
.app-exp-note {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px dashed #242c3b;
  color: #94a3b8 !important;
  font-size: 12px !important;
}
.app-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.action-decision-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-app-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-copy-discord {
  background: #19202c;
  border-color: #2e3849;
  color: #cbd5e1;
}
.btn-copy-discord:hover {
  background: #232c3d;
  color: #fff;
}
.btn-action-approve {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}
.btn-action-approve:hover {
  background: #22c55e;
  color: #000;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}
.btn-action-reject {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}
.btn-action-reject:hover {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Filter Bar */
.filter-tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-pill-btn {
  background: #141923;
  border: 1px solid #283040;
  color: #94a3b8;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-pill-btn:hover {
  background: #1d2432;
  color: #fff;
}
.filter-pill-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(237, 98, 191, 0.3);
}

/* Rules Display Cards */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.rule-display-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-card-border);
  border-radius: 12px;
  padding: 20px;
}
.rule-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.rule-code-badge {
  background: rgba(0, 234, 255, 0.12);
  border: 1px solid rgba(0, 234, 255, 0.35);
  color: #00eaff;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 11px;
}
.rule-category-pill {
  background: #1a2230;
  border: 1px solid #2c384c;
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.rule-title {
  font-size: 15px;
  font-weight: 750;
  color: #fff;
  margin: 0;
}
.rule-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

/* Player Management Cards */
.player-manage-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}
.player-manage-card.is-banned {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.05);
}
.player-info-wrap {
  flex: 1;
  min-width: 0;
}
.player-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.player-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-action-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s;
}
.btn-action-small svg {
  width: 14px;
  height: 14px;
}
.btn-kick {
  background: #1c2433;
  border-color: #2c394e;
  color: #cbd5e1;
}
.btn-kick:hover {
  background: #283449;
  color: #fff;
}
.btn-ban {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.btn-ban:hover {
  background: #ef4444;
  color: #fff;
}
.btn-unban {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}
.btn-unban:hover {
  background: #22c55e;
  color: #000;
}

/* Settings Form */
.settings-form-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-group label {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.settings-group small {
  font-size: 11px;
  color: var(--muted);
}
.input-dark {
  background: #0f131a !important;
  border: 1px solid #252d3c !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.input-dark:focus {
  border-color: var(--accent) !important;
  outline: none !important;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #11151e;
  border: 1px solid #252d3c;
  border-radius: 8px;
}

/* Toast */
.player-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: #19202d;
  color: #fff;
  border: 1px solid #00eaff;
  box-shadow: 0 10px 35px rgba(0,0,0,0.7), 0 0 15px rgba(0, 234, 255, 0.3);
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  animation: toastPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes toastPop {
  from { opacity: 0; transform: translate(-50%, 15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .stats-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-actions-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules-grid { grid-template-columns: 1fr; }
  .settings-form-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .stats-overview-grid { grid-template-columns: 1fr; }
  .quick-actions-bar { grid-template-columns: 1fr; }
  .app-card-header { flex-direction: column; align-items: flex-start; }
  .app-card-actions { flex-direction: column; align-items: stretch; }
  .action-decision-group { width: 100%; justify-content: stretch; }
  .action-decision-group .btn-app-action { flex: 1; justify-content: center; }
  .btn-copy-discord { width: 100%; justify-content: center; }
  .player-manage-card { flex-direction: column; align-items: flex-start; }
  .player-action-buttons { width: 100%; justify-content: flex-end; }
}
