/* ==========================================================================
   2026 TAEKWONDO SPORTS EVENT - PREMIUM LIGHT ADMIN DASHBOARD & LOGIN CSS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Brand Accents */
  --cyber-cyan: #0284c7;
  --cyber-cyan-bright: #0ea5e9;
  --cyber-cyan-glow: rgba(14, 165, 233, 0.2);
  --cyber-cyan-dark: #0369a1;
  
  --gold-highlight: #b45309;
  --gold-light: #fef3c7;
  --gold-primary: #f59e0b;
  --gold-deep: #d97706;
  --primary-orange: #ea580c;
  --accent-red: #e11d48;
  --accent-green: #10b981;
  --accent-purple: #7c3aed;

  /* Crisp Light Theme Tokens */
  --bg-page: #f1f5f9;
  --bg-sidebar: #0b1528;
  --bg-topbar: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-table-head: #f8fafc;
  
  --border-light: #e2e8f0;
  --border-card: #e2e8f0;
  --border-focus: #0ea5e9;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-light: #94a3b8;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);

  --font-hero: 'Bebas Neue', sans-serif;
  --font-tech: 'Rajdhani', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  --sidebar-width: 260px;
}

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

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   LOGIN PAGE STYLES (Clean & Professional Light Executive)
   ========================================================================== */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 10% 20%, #e0f2fe 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, #ffedd5 0%, transparent 40%),
              #f8fafc;
  position: relative;
  overflow: hidden;
}

.login-glow-circle-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
  top: -120px;
  right: -120px;
  border-radius: 50%;
  pointer-events: none;
}

.login-glow-circle-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.08) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  border-radius: 50%;
  pointer-events: none;
}

.admin-login-card {
  width: 100%;
  max-width: 450px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 40px 36px;
  position: relative;
  z-index: 10;
  animation: cardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-brand-logo {
  max-height: 75px;
  margin-bottom: 12px;
}

.login-title {
  font-family: var(--font-hero);
  font-size: 2.1rem;
  letter-spacing: 1.5px;
  color: #0f172a;
  margin-bottom: 4px;
}

.login-subtitle {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: var(--cyber-cyan);
  text-transform: uppercase;
  font-weight: 700;
}

.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #334155;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.admin-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-input-icon {
  position: absolute;
  left: 16px;
  color: #64748b;
  font-size: 1rem;
  pointer-events: none;
}

.admin-form-control {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 13px 16px 13px 44px;
  color: #0f172a;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.admin-form-control:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--cyber-cyan-bright);
  box-shadow: 0 0 0 3.5px var(--cyber-cyan-glow);
}

.toggle-password-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  font-size: 1rem;
  transition: color 0.2s;
}

.toggle-password-btn:hover {
  color: var(--cyber-cyan);
}

.btn-cyber-submit {
  width: 100%;
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: var(--font-tech);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
  margin-top: 24px;
}

.btn-cyber-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35);
  background: linear-gradient(135deg, #c2410c 0%, #d97706 100%);
}

.back-to-site-link {
  display: block;
  text-align: center;
  margin-top: 22px;
  color: #64748b;
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.back-to-site-link:hover {
  color: var(--cyber-cyan);
}

/* Alert Boxes */
.admin-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: alertIn 0.3s ease;
  font-weight: 500;
}

@keyframes alertIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.admin-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

/* ==========================================================================
   ADMIN LAYOUT & COMPONENTS
   ========================================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo-img {
  height: 44px;
}

.sidebar-brand-title {
  font-family: var(--font-hero);
  font-size: 1.35rem;
  letter-spacing: 1px;
  line-height: 1.1;
  color: #ffffff;
}

.sidebar-brand-title span {
  color: #f59e0b;
}

.sidebar-badge {
  display: inline-block;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1.5px;
}

.sidebar-nav {
  padding: 20px 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 1.5px;
  padding: 10px 12px 4px;
  text-transform: uppercase;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.admin-nav-item i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  color: #64748b;
  transition: color 0.2s;
}

.admin-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.admin-nav-item:hover i {
  color: #38bdf8;
}

.admin-nav-item.active {
  color: #ffffff;
  background: linear-gradient(90deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.admin-nav-item.active i {
  color: #ffffff;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.admin-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-tech);
  font-size: 1.1rem;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.admin-avatar img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

.admin-user-info {
  flex: 1;
  overflow: hidden;
}

.admin-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.admin-user-role {
  font-size: 0.75rem;
  color: #94a3b8;
}

.btn-sidebar-logout {
  color: #f87171;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* Main Content Area */
.admin-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Topbar */
.admin-topbar {
  height: 70px;
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-mobile-sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
}

.page-title {
  font-family: var(--font-hero);
  font-size: 1.8rem;
  letter-spacing: 1.5px;
  color: #0f172a;
}

.page-title span {
  color: var(--cyber-cyan);
}

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

.live-time-badge {
  font-family: var(--font-code);
  font-size: 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  color: #334155;
  padding: 6px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.live-indicator {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.btn-outline-cyber {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-outline-cyber:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-gold-action {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 800;
  font-family: var(--font-tech);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-gold-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
  color: #ffffff;
}

/* Page Body */
.admin-content {
  padding: 28px 32px;
  flex: 1;
}

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

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: #0284c7;
}

.stat-card.card-orange::before {
  background: #ea580c;
}

.stat-card.card-green::before {
  background: #10b981;
}

.stat-card.card-purple::before {
  background: #7c3aed;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

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

.stat-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #64748b;
  text-transform: uppercase;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.stat-card.card-orange .stat-icon {
  background: #ffedd5;
  color: #ea580c;
}

.stat-card.card-green .stat-icon {
  background: #dcfce7;
  color: #10b981;
}

.stat-card.card-purple .stat-icon {
  background: #ede9fe;
  color: #7c3aed;
}

.stat-number {
  font-family: var(--font-hero);
  font-size: 2.7rem;
  letter-spacing: 1px;
  line-height: 1;
  color: #0f172a;
}

.stat-subtext {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* Dashboard Quick Banner */
.dashboard-hero-banner {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 20px;
}

.banner-text h2 {
  font-family: var(--font-hero);
  font-size: 1.7rem;
  color: #0f172a;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.banner-text p {
  color: #64748b;
  font-size: 0.92rem;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Card Section for Tables */
.admin-card-section {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 30px;
}

.section-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title-wrap h2 {
  font-family: var(--font-hero);
  font-size: 1.55rem;
  letter-spacing: 1px;
  color: #0f172a;
}

.section-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 2px;
}

.header-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filters-bar {
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.95rem;
}

.table-search-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  padding: 9px 14px 9px 38px;
  color: #0f172a;
  font-size: 0.9rem;
}

.table-search-input:focus {
  outline: none;
  border-color: var(--cyber-cyan-bright);
  box-shadow: 0 0 0 3px var(--cyber-cyan-glow);
}

.filter-select {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  padding: 9px 14px;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--cyber-cyan-bright);
}

/* Data Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.cyber-table thead {
  background: var(--bg-table-head);
}

.cyber-table th {
  padding: 13px 18px;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #334155;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--border-light);
  white-space: nowrap;
}

.cyber-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  color: #334155;
  vertical-align: middle;
}

.cyber-table tbody tr {
  transition: background 0.15s ease;
  background: #ffffff;
}

.cyber-table tbody tr:hover {
  background: #f8fafc;
}

.athlete-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.athlete-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  flex-shrink: 0;
}

.athlete-thumb-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.athlete-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

.athlete-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

.badge-id {
  font-family: var(--font-code);
  font-size: 0.8rem;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid #bae6fd;
  display: inline-block;
  white-space: nowrap;
}

.badge-event {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-kyorugi {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-poomsae {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-speed {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.badge-accom-yes {
  color: #15803d;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #bbf7d0;
}

.badge-accom-no {
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  border: 1px solid #e2e8f0;
}

/* Status Pills & Interactive Status Dropdown Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.status-pill-pending {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-pill-approved {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.status-pill-rejected {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Interactive Status Select Badge */
.status-dropdown-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 26px 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  border: 1.5px solid transparent;
  outline: none;
  transition: all 0.2s ease;
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
  display: inline-block;
  line-height: 1.2;
}

.status-dropdown-select.status-pending {
  background-color: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23b45309'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.status-dropdown-select.status-pending:hover {
  background-color: #fde68a;
  border-color: #f59e0b;
}

.status-dropdown-select.status-approved {
  background-color: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2315803d'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.status-dropdown-select.status-approved:hover {
  background-color: #bbf7d0;
  border-color: #10b981;
}

.status-dropdown-select.status-rejected {
  background-color: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23b91c1c'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.status-dropdown-select.status-rejected:hover {
  background-color: #fecaca;
  border-color: #ef4444;
}

.btn-approve-sm {
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.btn-approve-sm:hover {
  background: #059669;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.btn-revert-sm {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.btn-revert-sm:hover {
  background: #e2e8f0;
  color: #334155;
}

/* Action Buttons */
.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-tbl-action {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-tbl-view {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}

.btn-tbl-view:hover {
  background: #0284c7;
  color: #ffffff;
}

.btn-tbl-print {
  background: #fef3c7;
  color: #d97706;
  border-color: #fde68a;
}

.btn-tbl-print:hover {
  background: #d97706;
  color: #ffffff;
}

.btn-tbl-cert {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.btn-tbl-cert:hover {
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.btn-tbl-edit {
  background: #ede9fe;
  color: #7c3aed;
  border-color: #ddd6fe;
}

.btn-tbl-edit:hover {
  background: #7c3aed;
  color: #ffffff;
}

.btn-tbl-delete {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

.btn-tbl-delete:hover {
  background: #dc2626;
  color: #ffffff;
}

/* Empty State */
.table-empty-state {
  text-align: center;
  padding: 50px 20px;
  color: #64748b;
}

.empty-icon {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

/* ==========================================================================
   MODAL WINDOWS (ATHLETE PROFILE, EDIT, CREATE, SETTINGS)
   ========================================================================== */
.admin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
}

.admin-modal-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.95) translateY(15px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header-cyber {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-cyber h3 {
  font-family: var(--font-hero);
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close-modal {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
}

.btn-close-modal:hover {
  color: var(--accent-red);
}

.modal-body-cyber {
  padding: 24px;
}

/* ID Card Preview in Modal */
.id-card-preview {
  background: #ffffff;
  border: 2px solid #0284c7;
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.id-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px dashed #cbd5e1;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.id-tournament-name {
  font-family: var(--font-hero);
  font-size: 1.35rem;
  color: #0f172a;
  letter-spacing: 1.5px;
}

.id-tournament-name span {
  color: #ea580c;
}

.id-reg-number {
  font-family: var(--font-code);
  font-weight: 700;
  color: #0284c7;
  font-size: 0.95rem;
  background: #e0f2fe;
  padding: 4px 8px;
  border-radius: 4px;
}

.id-card-main-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
}

.id-photo-frame {
  width: 130px;
  height: 155px;
  border-radius: 10px;
  border: 2px solid #0284c7;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.id-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.id-photo-placeholder {
  font-size: 2.5rem;
  color: #94a3b8;
}

.id-details-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  font-size: 0.88rem;
}

.id-detail-item strong {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.id-detail-item span {
  color: #0f172a;
  font-weight: 600;
}

/* Modal Form Grids */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
  .btn-mobile-sidebar-toggle {
    display: inline-block;
  }
}

@media (max-width: 600px) {
  .admin-topbar {
    padding: 0 16px;
  }
  .admin-content {
    padding: 20px 16px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2, .form-grid-3 {
    grid-template-columns: 1fr;
  }
  .id-card-main-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .id-photo-frame {
    margin: 0 auto;
  }
  .id-details-list {
    grid-template-columns: 1fr;
  }
}
