/*
 * =====================================================
 * STYLE.CSS - Futuristic Neon Glow Design System
 * =====================================================
 * Struktur: Variables → Reset → Base → Layout → Components → Utilities → Animations → Responsive
 */

/* =====================================================
   1. CSS VARIABLES & COLOR PALETTE
   ===================================================== */
:root {
  /* Base Colors */
  --bg: #0d204d;
  --card: #0b1220;
  --text: #ffffff;
  --muted: #9fb4c8;
  --glass: rgba(255, 255, 255, 0.04);

  /* Accent Colors */
  --accent1: #ff7ab6;
  --accent2: #75d8ff;
  --accent3: #ffd86b;
  --danger: #ff6b6b;

  /* Neon Colors */
  --neon-blue: #00ffff;
  --neon-pink: #ff00ff;
  --neon-yellow: #fff200;
}

/* =====================================================
   2. RESET & BASE STYLES
   ===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: radial-gradient(
      1200px 600px at 10% 10%,
      rgba(122, 207, 255, 0.06),
      transparent
    ),
    radial-gradient(
      900px 400px at 90% 90%,
      rgba(255, 122, 182, 0.04),
      transparent
    ),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: grayscale;
}

/* =====================================================
   3. TYPOGRAPHY
   ===================================================== */
.lead {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

/* =====================================================
   4. LAYOUT STRUCTURE
   ===================================================== */
.center {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  backdrop-filter: blur(3px);
  z-index: 1000;
}

.container {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  flex-wrap: wrap;
}

.left {
  flex: 1;
  min-width: 280px;
}

.right {
  width: 500px;
  min-width: 300px;
}

/* =====================================================
   5. CARD COMPONENTS
   ===================================================== */
.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 2px solid rgba(255, 255, 255, 0.04);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.6);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 28px;
}

/* =====================================================
   6. FORM ELEMENTS
   ===================================================== */
input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--glass);
  color: var(--text);
  margin: 8px 0;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(117, 216, 255, 0.4);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
}

/* =====================================================
   7. BUTTON COMPONENTS
   ===================================================== */
.btn {
  position: relative;
  display: inline-block;
  padding: 12px 36px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 114, 255, 0.4);
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transition: all 0.6s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 114, 255, 0.6);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: scale(0.98);
  box-shadow: 0 3px 10px rgba(0, 114, 255, 0.4);
}

.btn:focus {
  outline: 2px solid rgba(117, 216, 255, 0.4);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
}

/* Button Variants */
.btn.small {
  padding: 6px 10px;
  font-size: 13px;
}

.btn.muted {
  background: linear-gradient(135deg, #6c757d, #9ea7ad);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  box-shadow: 0 2px 8px rgba(160, 160, 160, 0.2);
}

.btn.muted:hover {
  box-shadow: 0 4px 12px rgba(160, 160, 160, 0.3);
}

.btn.danger {
  background: linear-gradient(135deg, #ff4e50, #f9d423);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 80, 80, 0.3);
}

.btn.danger:hover {
  box-shadow: 0 4px 12px rgba(255, 80, 80, 0.5);
}

/* Admin Controls Buttons */
.admin-controls .btn {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  box-shadow: 0 2px 8px rgba(0, 200, 255, 0.3);
}

.admin-controls .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 200, 255, 0.4);
}

/* =====================================================
   8. BRANDING & STATUS COMPONENTS
   ===================================================== */

/* Brand Logo */
.brand {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: capitalize;
  color: #fff;
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.5);
  letter-spacing: 0.5px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 0;
}

.brand::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    rgba(0, 255, 255, 0.2),
    rgba(255, 255, 255, 0.6),
    rgba(0, 255, 255, 0.2)
  );
  animation: rotateGlow 3s linear infinite;
  z-index: -2;
}

.brand::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg, #003cff, #00d4ff);
  border-radius: 50px;
  z-index: -1;
}

.brand span {
  position: relative;
  z-index: 1;
}

.brand:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 198, 255, 0.7);
}

/* Status Badges */
.status-badge {
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  display: inline-block;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.status-online {
  color: #00ffa3;
  background-color: rgba(0, 255, 163, 0.12);
  border: 1px solid rgba(0, 255, 163, 0.25);
  box-shadow: 0 0 10px rgba(0, 255, 163, 0.2);
}

.status-offline {
  color: #ff4f4f;
  background-color: rgba(255, 79, 79, 0.12);
  border: 1px solid rgba(255, 79, 79, 0.25);
  box-shadow: 0 0 10px rgba(255, 79, 79, 0.2);
}

/* User Area */
.user-area {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(20, 20, 30, 0.5);
  border: 2px solid rgba(0, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3),
    inset 0 0 15px rgba(0, 255, 255, 0.2);
  color: #fff;
  font-family: "Poppins", sans-serif;
  backdrop-filter: blur(20px) saturate(200%);
  text-transform: capitalize;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease;
  animation: pulseGlow 3s infinite alternate ease-in-out;
}

.user-area:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px var(--neon-pink, rgba(255, 0, 255, 0.7)),
    inset 0 0 30px var(--neon-blue, rgba(0, 255, 255, 0.4));
  background: rgba(20, 20, 30, 0.7);
}

.user-area::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    var(--neon-blue),
    var(--neon-pink),
    #007bff,
    var(--neon-blue)
  );
  filter: blur(90px);
  animation: rotateNeon 6s linear infinite;
  z-index: -1;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.user-area::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.15),
    transparent 70%
  );
  pointer-events: none;
  animation: floatLight 5s ease-in-out infinite alternate;
}

.user-area span {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--neon-blue, #00ffff);
  text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue),
    0 0 30px var(--neon-pink);
  animation: textGlow 3s ease-in-out infinite alternate;
}

/* =====================================================
   9. ADMIN CONTROLS
   ===================================================== */
.admin-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  color: #ff00ff;
}

/* =====================================================
   10. TABLE COMPONENTS
   ===================================================== */

/* Players Container */
.players-container {
  background: #0f1a2e;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-family: "Inter", "Helvetica Neue", sans-serif;
  color: #f0f0f0;
  border: 1px solid #1c355e;
}

.players-container h3 {
  margin: 0 0 16px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 2px solid #00ffff;
  padding-bottom: 10px;
}

/* Players Table */
.players-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #152441;
  border: 1px solid #00ffff44;
  border-radius: 8px;
  overflow: hidden;
  color: #e0e0e0;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s ease-in-out;
}

.players-table thead {
  background: linear-gradient(90deg, #3f1d1d 0%, #144e1d 100%);
  position: relative;
  overflow: hidden;
}

.players-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffea03;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.players-table tbody tr {
  transition: background-color 0.2s ease-in-out;
  border-bottom: 1px solid #203a64;
}

.players-table tbody tr:hover {
  background-color: #00ffff1a;
}

.players-table td {
  padding: 10px 8px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-transform: capitalize;
  transition: background 0.3s ease;
  font-size: 20px;
}

.players-table tr:hover {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

/* Table Summary */
.summary-row {
  background: linear-gradient(90deg, #132b5c, #1c3f83);
  border-top: 2px solid #3b5bb5;
}

.summary-cell {
  text-align: center;
  padding: 8px 10px;
}

.summary-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: #cdd9f9;
  font-family: "Poppins", sans-serif;
  font-size: 0.9em;
  letter-spacing: 0.2px;
}

.summary-wrapper strong {
  color: #ffffff;
  font-weight: 600;
}

.summary-wrapper .divider {
  color: #5678c0;
  opacity: 0.7;
  margin: 0 2px;
}

.summary-wrapper .value {
  font-weight: 600;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.value.blue {
  color: #5cc8ff;
}
.value.green {
  color: #6dffb0;
}
.value.yellow {
  color: #ffe76d;
}
.value.pink {
  color: #ff89c2;
}

/* =====================================================
   11. CHAT COMPONENTS
   ===================================================== */
.chat-card {
  position: relative;
  background: #153364;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: "Segoe UI", sans-serif;
}

.chat-card h3 {
  background: #00897b;
  color: white;
  text-align: left;
  margin: 0;
  padding: 10px;
  font-size: 16px;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.chat-window {
  height: 500px;
  overflow-y: auto;
  background: #e5ddd5;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.chat-window > div {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 10px;
  max-width: 50%;
  word-wrap: break-word;
  font-size: 14px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  text-transform: capitalize;
}

.chat-window > div:not(.me) {
  align-self: flex-start;
  background: #ffffff;
  border-top-left-radius: 0px;
  color: #111;
  border: 1px solid #b09d9d;
}

.chat-window > .me {
  align-self: flex-end;
  background: #dcf8c6;
  border-top-right-radius: 0;
  color: #111;
  border: 1px solid #b09d9d;
}

.chat-input {
  display: flex;
  align-items: center;
  border-top: 1px solid #ccc;
  background: #05253e;
  padding: 8px;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
  background: #f7f7f7;
  color: #111;
  margin: 0;
}

.chat-input input:focus {
  border-color: #00897b;
}

.chat-input .btn {
  background: #00897b;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
  box-shadow: none;
  transform: none;
  overflow: visible;
}

.chat-input .btn::before {
  content: none;
}

.chat-input .btn:hover {
  background: #00695c;
  transform: none;
  box-shadow: none;
}

/* =====================================================
   12. TIMER & PROGRESS
   ===================================================== */
.timer-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#timer {
  font-size: 24px;
  font-weight: 700;
}

.progress-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  transition: width 0.4s ease;
}

/* =====================================================
   13. PRESENT BANNER
   ===================================================== */
#present {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  text-align: center;
  color: #ddfa02;
  padding: 14px 0;
  border: 2px solid #03edca;
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex; /* agar teks di tengah vertikal */
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  animation: glowPulse 2s ease-in-out infinite;
}

/* efek ketikan */
#present::before {
  content: attr(data-text);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #ddfa02;
  color: #ddfa02;
  animation: typingLoop 5s steps(30, end) infinite,
    blinkCursor 0.7s step-end infinite;
}

/* efek ketikan berulang */
@keyframes typingLoop {
  0% {
    width: 0;
  }
  40% {
    width: 100%;
  }
  60% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

/* cursor berkedip */
@keyframes blinkCursor {
  from {
    border-color: #ddfa02;
  }
  to {
    border-color: transparent;
  }
}

/* efek neon berdenyut */
@keyframes glowPulse {
  0% {
    text-shadow: 0 0 8px #03edca, 0 0 16px #03edca;
  }
  50% {
    text-shadow: 0 0 14px #ddfa02, 0 0 28px #03edca;
  }
  100% {
    text-shadow: 0 0 8px #03edca, 0 0 16px #03edca;
  }
}

/* =====================================================
   14. FOOTER
   ===================================================== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px 40px;
  margin: 30px;
  border-radius: 16px;
  background: radial-gradient(
      circle at top left,
      rgba(0, 255, 255, 0.15),
      rgba(255, 0, 150, 0.08) 60%
    ),
    rgba(15, 15, 25, 0.85);
  border: 2px solid rgba(0, 255, 255, 0.25);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.15),
    inset 0 0 25px rgba(255, 0, 200, 0.05);
  backdrop-filter: blur(10px) saturate(150%);
  color: rgba(245, 255, 255, 0.9);
  font-family: "Orbitron", "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1rem;
  animation: footerGlow 6s ease-in-out infinite alternate;
}

.creator {
  background: linear-gradient(270deg, #00fff2, #ff00c8, #7c3aed, #00fff2);
  background-size: 600% 600%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  position: relative;
  animation: textFlow 5s linear infinite;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.5), 0 0 16px rgba(255, 0, 200, 0.4);
}

.creator::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 3px;
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #00fff2, #7c3aed, #ff00c8, #00fff2);
  background-size: 300% 300%;
  animation: neonLine 3s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 20px rgba(255, 0, 200, 0.6);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 50% 50%,
      rgba(0, 255, 255, 0.08),
      transparent 30%
    ),
    radial-gradient(circle at 80% 20%, rgba(255, 0, 200, 0.06), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 0, 0.05), transparent 40%);
  animation: pulseLight 8s infinite alternate ease-in-out;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* =====================================================
   15. CUSTOM ALERT / MODAL
   ===================================================== */
.custom-alert {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(4px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.4s ease forwards;
}

.custom-alert .alert-content {
  position: relative;
  background: rgba(20, 25, 40, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 30px 36px;
  text-align: center;
  color: #e5e7eb;
  font-family: "Poppins", sans-serif;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.15), 0 0 60px rgba(255, 0, 255, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  animation: popUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.custom-alert .alert-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.6),
    rgba(255, 0, 255, 0.5),
    rgba(255, 255, 0, 0.5)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderGlow 6s linear infinite;
}

.custom-alert .alert-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #00eaff;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

.custom-alert p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.custom-alert .btn {
  margin-top: 22px;
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

.custom-alert.success .alert-content {
  background: rgba(0, 40, 20, 0.85);
  border-color: rgba(0, 255, 163, 0.3);
  box-shadow: 0 0 30px rgba(0, 255, 163, 0.25);
}

.custom-alert.warning .alert-content {
  background: rgba(40, 35, 0, 0.85);
  border-color: rgba(255, 200, 0, 0.3);
  box-shadow: 0 0 30px rgba(255, 200, 0, 0.25);
}

.custom-alert.error .alert-content {
  background: rgba(40, 0, 0, 0.85);
  border-color: rgba(255, 80, 80, 0.3);
  box-shadow: 0 0 30px rgba(255, 80, 80, 0.25);
}

.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

/* =====================================================
   16. AUTH LINKS
   ===================================================== */
#show-register,
#show-login {
  position: relative;
  color: var(--accent2, #75d8ff);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  animation: neonPulse 2.5s infinite ease-in-out;
}

#show-register::after,
#show-login::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #75d8ff, #ff7ab6, #ffd86b);
  box-shadow: 0 0 6px rgba(117, 216, 255, 0.8);
  border-radius: 4px;
  transition: width 0.4s ease, box-shadow 0.3s ease;
}

#show-register:hover,
#show-login:hover {
  color: #ffffff;
  text-shadow: 0 0 8px #75d8ff, 0 0 16px #ff7ab6;
}

#show-register:hover::after,
#show-login:hover::after {
  width: 100%;
  box-shadow: 0 0 12px #75d8ff, 0 0 24px #ff7ab6;
}

#show-register:active,
#show-login:active {
  transform: scale(0.96);
  text-shadow: 0 0 6px #ffd86b, 0 0 12px #ff7ab6;
}

/* =====================================================
   17. DARK MODE THEME
   ===================================================== */
.dark-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
  color: #fff;
  overflow: hidden;
}

.dark-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.6);
}

.dark-toggle .icon-sun {
  display: none;
}

body.dark .dark-toggle {
  background: linear-gradient(135deg, #333, #000);
  color: #ffdd00;
}

body.dark .dark-toggle .icon-sun {
  display: inline;
}

body.dark .dark-toggle .icon-moon {
  display: none;
}

/* Dark Mode Styles */
body.dark {
  background: #0b0b14;
  color: #e0e0e0;
}

body.dark .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark .players-table {
  background: #121212;
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark .chat-card {
  background: #111827;
}

body.dark .chat-window {
  background: #000000;
  color: #ffffff;
}

body.dark .chat-window > div:not(.me) {
  background: #1a1a1a;
  color: #f1f1f1;
  border-color: #333;
}

body.dark .chat-window > .me {
  background: #0d47a1;
  color: #fff;
  border-color: #222;
}

body.dark .chat-input {
  background: #111;
  border-top: 1px solid #333;
}

body.dark .chat-input input {
  background: #222;
  color: #fff;
  border-color: #333;
}

body.dark .chat-input .btn {
  background: #00695c;
  color: #fff;
}

body.dark .site-footer {
  background: rgba(15, 15, 25, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
}

/* =====================================================
   18. UTILITY CLASSES
   ===================================================== */
.hidden {
  display: none;
}

.mt {
  margin-top: 12px;
}

.x {
  padding: 5px;
}

/* =====================================================
   19. ANIMATIONS & KEYFRAMES
   ===================================================== */

/* Pop Animation */
@keyframes pop {
  from {
    transform: translateY(6px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Footer Animations */
@keyframes footerGlow {
  0% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2),
      inset 0 0 20px rgba(255, 0, 200, 0.05);
    border-color: rgba(0, 255, 255, 0.25);
  }
  100% {
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.4),
      inset 0 0 30px rgba(255, 0, 200, 0.1);
    border-color: rgba(255, 0, 255, 0.35);
  }
}

@keyframes textFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes neonLine {
  0% {
    background-position: 0% 50%;
    opacity: 0.8;
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
  100% {
    background-position: 0% 50%;
    opacity: 0.8;
  }
}

@keyframes pulseLight {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* User Area Animations */
@keyframes pulseGlow {
  0% {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue, #00ffff),
      inset 0 0 10px var(--neon-blue, #00ffff);
  }
  50% {
    border-color: var(--neon-pink);
    box-shadow: 0 0 45px var(--neon-pink, #ff00ff),
      inset 0 0 20px var(--neon-blue, #00ffff);
  }
  100% {
    border-color: #007bff;
    box-shadow: 0 0 25px #007bff, inset 0 0 15px #007bff;
  }
}

@keyframes rotateNeon {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 8px var(--neon-blue);
    color: var(--neon-blue);
  }
  50% {
    text-shadow: 0 0 18px var(--neon-yellow);
    color: var(--neon-yellow);
  }
  100% {
    text-shadow: 0 0 10px var(--neon-yellow);
    color: #e5ff00;
  }
}

@keyframes floatLight {
  0% {
    transform: translate(0, 0);
    opacity: 0.4;
  }
  50% {
    transform: translate(5px, -5px);
    opacity: 0.6;
  }
  100% {
    transform: translate(-5px, 5px);
    opacity: 0.4;
  }
}

/* Brand Animation */
@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Auth Link Animation */
@keyframes neonPulse {
  0%,
  100% {
    text-shadow: 0 0 6px #75d8ff, 0 0 12px #ff7ab6;
  }
  50% {
    text-shadow: 0 0 12px #ffd86b, 0 0 24px #ff7ab6;
  }
}

/* Present Banner Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 5px #03edca, inset 0 0 5px #ffffff;
  }
  50% {
    box-shadow: 0 0 15px #03edca, inset 0 0 10px #ffffff;
  }
  100% {
    box-shadow: 0 0 5px #03edca, inset 0 0 5px #ffffff;
  }
}

/* Alert Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popUp {
  0% {
    transform: scale(0.85) translateY(30px);
    opacity: 0;
  }
  60% {
    transform: scale(1.03) translateY(-8px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* =====================================================
   20. RESPONSIVE DESIGN - MEDIA QUERIES
   ===================================================== */

/* Tablet & Large Mobile - 880px */
@media (max-width: 880px) {
  .container {
    flex-direction: column;
    padding: 12px;
  }

  .left,
  .right {
    width: 100% !important;
    max-width: 100% !important;
  }

  .left .card {
    width: 100% !important;
    box-sizing: border-box;
  }
}

/* Tablet & Mobile - 768px */
@media (max-width: 768px) {
  .players-table th,
  .players-table td {
    padding: 10px 8px;
    font-size: 20px;
  }

  .admin-controls {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background-color: #0e1152;
  }

  .admin-controls .btn {
    width: 100%;
    font-size: 18px;
  }

  .chat-window {
    height: 400px;
  }
}

/* Chatbox Position for Desktop */
@media (min-width: 769px) {
  .chat-card {
    width: 100%;
    max-width: none;
    margin-top: 16px;
  }

  .left .chat-card {
    order: 2;
  }

  .container {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Mobile Small - 600px */
@media (max-width: 600px) {
  .left .card {
    padding: 12px;
    margin: 8px 0;
    border-radius: 10px;
  }

  .chat-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .summary-cell {
    padding: 6px 4px;
  }

  .summary-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px;
    font-size: 0.8em;
    letter-spacing: 0.1px;
  }

  .summary-wrapper .divider {
    margin: 0 1px;
  }

  #present {
    font-size: 15px;
    padding: 10px 0;
  }
}

/* Mobile - 520px */
@media (max-width: 520px) {
  .site-footer {
    padding: 14px;
    margin: 12px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .players-table th,
  .players-table td {
    font-size: 16px;
    padding: 6px 4px;
  }
}

/* Topbar Responsive - 500px */
@media (max-width: 500px) {
  .topbar {
    padding: 8px 12px;
    gap: 6px;
  }

  .brand {
    font-size: 0.8rem;
    padding: 8px 14px;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.3);
  }

  .dark-toggle {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .user-area {
    gap: 8px;
    padding: 6px 10px;
    border-width: 1px;
    border-radius: 8px;
    font-size: 0.8rem;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
  }

  .user-area span {
    font-size: 0.9rem;
  }

  .user-area .btn.small {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
}

/* Extra Small Mobile - 480px */
@media (max-width: 480px) {
  .players-container {
    padding: 10px 12px;
  }

  .players-table th,
  .players-table td {
    font-size: 16px;
    padding: 6px 4px;
  }

  .container {
    padding: 12px;
  }

  .chat-window {
    height: 260px;
    padding: 5px;
  }

  .chat-window > div {
    font-size: 0.75rem;
    max-width: 95%;
  }

  .chat-input {
    margin-top: 6px;
  }

  .chat-input input {
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  .chat-input .btn {
    font-size: 0.8rem;
    padding: 8px 10px;
  }
}

/* Ultra Small Mobile - 375px */
@media (max-width: 375px) {
  .players-table td {
    font-size: 11px;
    padding: 6px 8px;
  }
}

/* =====================================================
   21. ACCESSIBILITY
   ===================================================== */

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Focus States for Accessibility */
button:focus,
.btn:focus {
  outline: 2px solid rgba(117, 216, 255, 0.4);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
}

/* =====================================================
   END OF STYLESHEET
   ===================================================== */
