/* Admin Dashboard Stylesheet */
.admin-body {
  background-color: #06110a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Admin Auth Screen */
.admin-auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: 
    radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 60%),
    #06110a;
}

.auth-card {
  background: #0b1f14;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.25);
  text-align: center;
}

.auth-icon {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.auth-desc {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 28px;
}

/* Admin Dashboard Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 270px;
  background: #08170f;
  border-right: 1px solid rgba(52, 211, 153, 0.18);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-item:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #ffffff;
}

.sidebar-item.active {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.08));
  color: var(--primary-light);
  border-left: 3px solid var(--primary);
}

.sidebar-badge {
  margin-left: auto;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #042416;
}

.admin-info h6 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.admin-info p {
  font-size: 12px;
  color: var(--primary-light);
}

/* Main Admin Content */
.admin-main {
  flex-grow: 1;
  background: #06110a;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.admin-topbar {
  padding: 18px 32px;
  background: #08170f;
  border-bottom: 1px solid rgba(52, 211, 153, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-content {
  padding: 32px;
  flex-grow: 1;
}

/* Metrics KPI Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.metric-card {
  background: #0d2217;
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.metric-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.metric-icon.amber {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}
.metric-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
.metric-icon.emerald {
  background: rgba(0, 245, 212, 0.15);
  color: #00f5d4;
}

.metric-data h3 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.metric-data p {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Tables & Panels */
.panel {
  background: #0d2217;
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.panel-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group {
  display: flex;
  gap: 8px;
}

.filter-btn {
  background: rgba(8, 20, 13, 0.8);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #042416;
  border-color: var(--primary);
}

/* Table Style */
.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: rgba(6, 16, 10, 0.6);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(52, 211, 153, 0.2);
}

.admin-table td {
  padding: 16px;
  font-size: 14px;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
  text-align: left;
}

.admin-table tr:hover td {
  background: rgba(16, 185, 129, 0.04);
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-avatar-small {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  image-rendering: pixelated;
  background: #08170f;
  border: 1px solid var(--primary);
}

/* Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-badge.pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge.approved {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Action Buttons inside Table */
.action-btns {
  display: flex;
  gap: 8px;
}

.btn-action {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-action.approve {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #042416;
}

.btn-action.approve:hover {
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

.btn-action.reject {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-action.reject:hover {
  background: #ef4444;
  color: #ffffff;
}

/* RCON Console Styles */
.console-window {
  background: #040a06;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 480px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.console-output {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #34d399;
  line-height: 1.6;
}

.console-line {
  margin-bottom: 4px;
  word-break: break-all;
}

.console-line.cmd {
  color: #60a5fa;
}

.console-line.err {
  color: #f87171;
}

.console-input-bar {
  display: flex;
  padding: 12px;
  background: #08170f;
  border-top: 1px solid rgba(52, 211, 153, 0.2);
  gap: 10px;
}

.console-prompt {
  color: var(--primary-light);
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex;
  align-items: center;
}

.console-input {
  flex-grow: 1;
  background: #040a06;
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 6px;
  color: #ffffff;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.console-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Quick Commands Bar */
.quick-cmds {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.quick-cmd-btn {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: #a7f3d0;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-cmd-btn:hover {
  background: var(--primary);
  color: #042416;
}
