/* ═══════════════════════════════════════════════════════════════
   Várzea Fest — Admin Panel Styles (Cyberpunk 2077 Theme)
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --neon-cyan: #00f3ff;
  --neon-pink: #ff0055;
  --neon-purple: #a855f7;
  --dark-bg: #050505;
  --dark-card: #0a0a0f;
  --glass-bg: rgba(10, 10, 15, 0.7);
  --glass-border: rgba(0, 243, 255, 0.12);
  --glass-border-hover: rgba(0, 243, 255, 0.3);
  --text-primary: #e8e8f0;
  --text-muted: #6b6b80;
  --text-bright: #ffffff;
  --glow-cyan: 0 0 20px rgba(0, 243, 255, 0.3);
  --glow-pink: 0 0 20px rgba(255, 0, 85, 0.3);
  --glow-purple: 0 0 20px rgba(168, 85, 247, 0.3);

  --green-50: rgba(0, 243, 255, 0.08);
  --green-100: rgba(0, 243, 255, 0.12);
  --green-200: rgba(0, 243, 255, 0.2);
  --green-400: #00f3ff;
  --green-500: #00f3ff;
  --green-600: #00d4e0;
  --green-700: #00a0b0;
  --green-800: #006070;
  --green-900: #003040;

  --blue-50: rgba(168, 85, 247, 0.08);
  --blue-100: rgba(168, 85, 247, 0.12);
  --blue-500: #a855f7;
  --blue-600: #9333ea;
  --blue-700: #7c22ce;

  --amber-50: rgba(245, 158, 11, 0.08);
  --amber-100: rgba(245, 158, 11, 0.12);
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  --red-50: rgba(239, 68, 68, 0.08);
  --red-100: rgba(239, 68, 68, 0.12);
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  --purple-500: #a855f7;
  --purple-600: #9333ea;

  --gray-50: #0a0a0f;
  --gray-100: #0d0d14;
  --gray-200: #12121a;
  --gray-300: #1a1a25;
  --gray-400: #6b6b80;
  --gray-500: #8b8ba0;
  --gray-600: #a0a0b5;
  --gray-700: #c0c0d0;
  --gray-800: #e8e8f0;
  --gray-900: #f0f0f8;

  --sidebar-width: 260px;
  --sidebar-bg: #0a0a0f;
  --sidebar-text: #8b8ba0;
  --sidebar-hover: rgba(0, 243, 255, 0.08);

  --font-sans: 'Space Grotesk', 'Rajdhani', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Orbitron', sans-serif;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--dark-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--neon-cyan); text-decoration: none; transition: color 0.2s, text-shadow 0.2s; }
a:hover { color: var(--neon-pink); text-shadow: 0 0 8px rgba(255, 0, 85, 0.3); text-decoration: none; }

/* ── Cyber Rain Background ──────────────────────────────────── */
#cyber-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
}

.admin-body { position: relative; background: var(--dark-bg); }

.admin-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Gradient overlay */
.admin-body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(0, 243, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 0, 85, 0.03) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--glass-border);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

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

.sidebar-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
  letter-spacing: 2px;
  margin: 0;
}

.sidebar-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

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

.sidebar-nav ul { list-style: none; padding: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  position: relative;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.3);
  text-decoration: none;
}

.nav-item:hover::before { transform: scaleY(1); }

.nav-item.active {
  background: rgba(0, 243, 255, 0.08);
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.3);
  border-right: 3px solid var(--neon-cyan);
  box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.05);
}

.nav-icon { font-size: 1.1rem; width: 1.5rem; text-align: center; }
.nav-label { flex: 1; }

.nav-badge {
  background: rgba(0, 243, 255, 0.12);
  color: var(--neon-cyan);
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.nav-section-label {
  padding: 0.75rem 1.25rem 0.25rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

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

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
  color: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
}

.sidebar-user-info { display: flex; flex-direction: column; }

.sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-bright);
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sidebar-logout {
  display: block;
  padding: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red-500);
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
  text-decoration: none;
}

/* ── Main Content ────────────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 2rem;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 1px;
}

.page-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ── Flash Messages ──────────────────────────────────────────── */
.flash {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  transition: opacity 0.5s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.flash-notice {
  background: rgba(0, 243, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 243, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.flash-alert {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red-400);
  border: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

.flash-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.6;
  color: inherit;
  padding: 0 0.25rem;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--glass-bg);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover { border-color: rgba(0, 243, 255, 0.25); }
.card:hover::before { opacity: 1; }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
}

.card-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body { padding: 1.25rem; }
.card-body.p-0 { padding: 0; }

/* ── Stats Grid ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--glass-bg);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 243, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.stat-icon {
  font-size: 1.5rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 10px;
  flex-shrink: 0;
}

.stat-card-users .stat-icon { background: rgba(168, 85, 247, 0.15); border-color: rgba(168, 85, 247, 0.3); }
.stat-card-eventos .stat-icon { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); }
.stat-card-inscricoes .stat-icon { background: rgba(0, 243, 255, 0.15); border-color: rgba(0, 243, 255, 0.3); }
.stat-card-financeiro .stat-icon { background: rgba(0, 243, 255, 0.2); border-color: rgba(0, 243, 255, 0.3); }
.stat-card-tokens .stat-icon { background: var(--neon-purple); border-color: var(--neon-purple); color: white; }
.stat-card-passaportes .stat-icon { background: rgba(0, 243, 255, 0.2); border-color: rgba(0, 243, 255, 0.3); }

.stat-body { flex: 1; }

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  white-space: nowrap;
}

.badge-lg { padding: 0.35rem 0.85rem; font-size: 0.8rem; }

.badge-success { background: rgba(0, 243, 255, 0.15); color: var(--neon-cyan); border-color: rgba(0, 243, 255, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--amber-500); border-color: rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--red-500); border-color: rgba(239, 68, 68, 0.3); }

.badge-rascunho { background: rgba(107, 107, 128, 0.15); color: var(--text-muted); border-color: rgba(107, 107, 128, 0.2); }
.badge-aberto { background: rgba(0, 243, 255, 0.15); color: var(--neon-cyan); border-color: rgba(0, 243, 255, 0.3); }
.badge-fechado { background: rgba(245, 158, 11, 0.15); color: var(--amber-500); border-color: rgba(245, 158, 11, 0.3); }
.badge-encerrado { background: rgba(239, 68, 68, 0.15); color: var(--red-500); border-color: rgba(239, 68, 68, 0.3); }

.badge-promotor { background: rgba(168, 85, 247, 0.15); color: var(--neon-purple); border-color: rgba(168, 85, 247, 0.3); }
.badge-tecnico { background: rgba(245, 158, 11, 0.15); color: var(--amber-500); border-color: rgba(245, 158, 11, 0.3); }
.badge-jogador { background: rgba(0, 243, 255, 0.15); color: var(--neon-cyan); border-color: rgba(0, 243, 255, 0.3); }

.badge-admin { background: var(--neon-purple); color: white; border-color: var(--neon-purple); }
.badge-total { background: var(--text-muted); color: var(--dark-bg); }

.badge-ativo { background: rgba(0, 243, 255, 0.15); color: var(--neon-cyan); border-color: rgba(0, 243, 255, 0.3); }
.badge-usado { background: rgba(245, 158, 11, 0.15); color: var(--amber-500); border-color: rgba(245, 158, 11, 0.3); }
.badge-expirado { background: rgba(239, 68, 68, 0.15); color: var(--red-500); border-color: rgba(239, 68, 68, 0.3); }

.badge-pendente { background: rgba(245, 158, 11, 0.15); color: var(--amber-500); border-color: rgba(245, 158, 11, 0.3); }
.badge-confirmada { background: rgba(0, 243, 255, 0.15); color: var(--neon-cyan); border-color: rgba(0, 243, 255, 0.3); }
.badge-cancelada { background: rgba(239, 68, 68, 0.15); color: var(--red-500); border-color: rgba(239, 68, 68, 0.3); }

/* ── Data Tables ─────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }

.data-table thead {
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid var(--glass-border);
}

.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.data-table tbody tr:hover { background: rgba(0, 243, 255, 0.04); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ── Table Wrapper (responsive scroll) ───────────────────────── */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.5rem;
}

.table-link {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.table-link:hover { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(0, 243, 255, 0.3); text-decoration: none; }

.actions-cell { display: flex; gap: 0.35rem; white-space: nowrap; }

.user-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: var(--dark-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn:hover {
  background: rgba(0, 243, 255, 0.1);
  text-decoration: none;
  border-color: rgba(0, 243, 255, 0.3);
  color: var(--neon-cyan);
}

.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.72rem; border-radius: 6px; }

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), #0a8aff);
  border-color: var(--neon-cyan);
  color: var(--dark-bg);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00d4e0, #0070dd);
  border-color: #00d4e0;
  box-shadow: 0 0 35px rgba(0, 243, 255, 0.4);
  transform: translateY(-1px);
  color: var(--dark-bg);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--red-500);
}

.btn-danger:hover {
  background: var(--red-600);
  border-color: var(--red-600);
  color: white;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: rgba(107, 107, 128, 0.3);
  color: var(--text-muted);
}

.btn-outline:hover {
  background: rgba(0, 243, 255, 0.08);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-block { width: 100%; justify-content: center; }

/* ── Forms ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.form-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.12), 0 0 15px rgba(0, 243, 255, 0.1);
}

.form-input::placeholder { color: var(--text-muted); opacity: 0.5; }

.search-box { position: relative; }
.search-input { width: 280px; padding-left: 0.75rem; }

/* ── Login Page ──────────────────────────────────────────────── */
.login-body {
  background: var(--dark-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.login-body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(0, 243, 255, 0.08) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.login-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 243, 255, 0.05);
  overflow: hidden;
}

.login-header {
  text-align: center;
  padding: 2.5rem 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(168, 85, 247, 0.1));
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-bright);
}

.login-logo {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.login-header h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
  letter-spacing: 3px;
}

.login-header p {
  font-size: 0.85rem;
  opacity: 0.7;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.login-form { padding: 1.5rem 2rem; }

.login-form .form-input,
.login-form input[type="email"],
.login-form input[type="password"] {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.login-footer {
  padding: 1rem 2rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.login-footer p { margin: 0.15rem 0; }

.login-hint {
  background: rgba(0, 243, 255, 0.08);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 243, 255, 0.15);
  color: var(--neon-cyan);
  margin-top: 0.5rem !important;
  font-size: 0.78rem;
}

/* ── Tabs ────────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 0;
  background: var(--glass-bg);
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--glass-border);
  border-bottom: none;
  overflow: hidden;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  border-right: 1px solid var(--glass-border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.tab-btn:last-child { border-right: none; }

.tab-btn:hover { background: rgba(0, 243, 255, 0.06); color: var(--text-primary); }

.tab-active {
  background: var(--glass-bg) !important;
  color: var(--neon-cyan) !important;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--neon-cyan);
}

.tab-panel { margin-top: 0; }
.hidden { display: none !important; }

/* ── Dashboard Sections ──────────────────────────────────────── */
.dashboard-sections { margin-top: 1.5rem; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.status-dot.status-rascunho { background: var(--text-muted); color: var(--text-muted); }
.status-dot.status-aberto { background: var(--neon-cyan); color: var(--neon-cyan); }
.status-dot.status-fechado { background: var(--amber-500); color: var(--amber-500); }
.status-dot.status-encerrado { background: var(--red-500); color: var(--red-500); }

.status-label { flex: 1; font-size: 0.85rem; color: var(--text-primary); }
.status-count { font-weight: 700; font-size: 0.9rem; color: var(--text-bright); }

/* ── Mini Chart ──────────────────────────────────────────────── */
.mini-chart { display: flex; flex-direction: column; gap: 0.5rem; }

.chart-bar-row { display: flex; align-items: center; gap: 0.75rem; }

.chart-label {
  width: 100px;
  font-size: 0.8rem;
  color: var(--text-primary);
  text-align: right;
}

.chart-bar-bg {
  flex: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), #0a8aff);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
  min-width: fit-content;
  transition: width 0.5s ease;
}

.chart-bar-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-bg);
}

/* ── Mini Stats ──────────────────────────────────────────────── */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.mini-stat {
  text-align: center;
  padding: 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.mini-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.mini-stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Finance Grid ────────────────────────────────────────────── */
.finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.finance-card {
  padding: 1rem;
  border-radius: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.finance-receita { border-color: rgba(0, 243, 255, 0.2); }
.finance-equipes { border-color: rgba(168, 85, 247, 0.2); }
.finance-jogadores { border-color: rgba(245, 158, 11, 0.2); }
.finance-pendente { border-color: rgba(239, 68, 68, 0.2); }

.finance-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.finance-value { display: block; font-size: 1.25rem; font-weight: 700; }

.finance-receita .finance-value { color: var(--neon-cyan); }
.finance-equipes .finance-value { color: var(--neon-purple); }
.finance-jogadores .finance-value { color: var(--amber-500); }
.finance-pendente .finance-value { color: var(--red-500); }

.finance-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Dashboard Grid 2 ────────────────────────────────────────── */
.dashboard-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── User Profile ────────────────────────────────────────────── */
.user-profile {
  background: var(--glass-bg);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.15), rgba(168, 85, 247, 0.1));
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-bright);
}

.user-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 900;
  flex-shrink: 0;
  color: var(--dark-bg);
}

.user-profile-info h2 { font-size: 1.35rem; margin: 0; }
.user-profile-info > p { font-size: 0.85rem; opacity: 0.7; margin: 0.15rem 0; }
.user-profile-badges { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.user-profile-badges .badge { opacity: 0.9; }

.user-profile-details { padding: 1.5rem; }

.detail-group h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.detail-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
}

.detail-list dt { color: var(--text-muted); font-weight: 500; }
.detail-list dd { color: var(--text-primary); }

/* ── Evento Show ─────────────────────────────────────────────── */
.evento-header {
  background: var(--glass-bg);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.evento-title-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.evento-title-section h2 { font-size: 1.35rem; margin: 0; }

.evento-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.evento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.evento-info-card,
.evento-stats-card {
  background: var(--glass-bg);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.evento-info-card h4,
.evento-stats-card h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.stat-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.stat-block {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.stat-block-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.stat-block-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.token-code {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  color: var(--neon-cyan);
}

.summary-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* ── Filter Bar ──────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  flex-wrap: wrap;
}

.filter-form { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; width: 100%; }
.filter-group { min-width: 180px; }

.filter-select {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  font-family: var(--font-sans);
}

.filter-select:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 243, 255, 0.12);
}

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-state p { font-size: 0.9rem; }

/* ── Inscricao Grid ──────────────────────────────────────────── */
.inscricao-header {
  background: var(--glass-bg);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.inscricao-title-section { display: flex; align-items: center; gap: 0.75rem; }
.inscricao-title-section h2 { font-size: 1.35rem; margin: 0; }

.inscricao-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.inscricao-info-card {
  background: var(--glass-bg);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  padding: 1.25rem;
  backdrop-filter: blur(10px);
}

.inscricao-info-card h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* ── Security & Audit ────────────────────────────────────────── */
.user-profile-header-blocked {
  background: linear-gradient(135deg, var(--red-700), var(--red-600)) !important;
}

.btn-success {
  background: linear-gradient(135deg, var(--neon-cyan), #0a8aff);
  border-color: var(--neon-cyan);
  color: var(--dark-bg);
}

.btn-success:hover {
  background: linear-gradient(135deg, #00d4e0, #0070dd);
  border-color: #00d4e0;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

details summary {
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
  color: var(--text-primary);
}

details summary:hover { background: rgba(0, 243, 255, 0.06); }

.security-section { margin-top: 1.5rem; }

.audit-table { font-size: 0.8rem; }

.audit-table td {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { width: 100%; position: relative; }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .dashboard-grid-2 { grid-template-columns: 1fr; }
  .evento-grid { grid-template-columns: 1fr; }
  .finance-grid { grid-template-columns: 1fr 1fr; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
}

