/* Admin Dashboard Stylesheet for Genocide e-Sports */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;800;900&family=Rajdhani:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --admin-bg: #090c13;
  --admin-sidebar: #0e131d;
  --admin-card: #131926;
  --admin-border: rgba(255, 255, 255, 0.08);
  --admin-cyan: #00f0ff;
  --admin-crimson: #ff0055;
  --admin-green: #00ff88;
  --admin-gold: #ffb703;
}

body.admin-body {
  background: var(--admin-bg);
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  margin: 0;
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background: var(--admin-sidebar);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-header img {
  height: 38px;
}

.sidebar-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 1.5px;
  margin: 0;
}

.sidebar-menu {
  list-style: none;
  padding: 20px 10px;
  margin: 0;
  flex-grow: 1;
}

.sidebar-menu li {
  margin-bottom: 6px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #8b9bb4;
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(0, 240, 255, 0.1);
  color: #fff;
  border-left: 3px solid var(--admin-cyan);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--admin-border);
}

.sidebar-footer a {
  color: #ff5577;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Admin Main Content */
.admin-main {
  flex-grow: 1;
  padding: 30px;
  overflow-y: auto;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.admin-title h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.7rem;
  color: #fff;
  letter-spacing: 1px;
  margin: 0;
}

.admin-title p {
  color: #8b9bb4;
  margin-top: 4px;
  font-size: 0.95rem;
}

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--stat-accent, var(--admin-cyan));
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stat-title {
  color: #8b9bb4;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-icon {
  color: var(--stat-accent, var(--admin-cyan));
  font-size: 1.4rem;
}

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

/* Data Table Card */
.table-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 30px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.table-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: #fff;
  margin: 0;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-input, .filter-select {
  background: #090e17;
  border: 1px solid var(--admin-border);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
}

.search-input:focus, .filter-select:focus {
  border-color: var(--admin-cyan);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.admin-table th {
  background: #0d121c;
  color: #8b9bb4;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.admin-table tr:hover td {
  background: rgba(0, 240, 255, 0.03);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-cyan-sm {
  background: var(--admin-cyan);
  color: #07090e;
  border: none;
}

.btn-view-slip {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--admin-cyan);
  color: var(--admin-cyan);
}

/* Slip Modal */
.slip-preview-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 6px;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
  body.admin-body {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
}
