 /* GLOBAL ---------------------------------------------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0A0A0F;
  font-family: Arial, sans-serif;
  color: #E5E7EB;
}

h1, h2, h3, h4 {
  font-weight: 600;
  margin: 0;
}

/* SCROLLBAR -------------------------------------------- */

::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-thumb {
  background: #1B1C24;
  border-radius: 5px;
}
::-webkit-scrollbar-track {
  background: #101117;
}

/* ==========================================================
   LOGIN PAGE (CLEAN + ANIMATED BACKGROUND)
========================================================== */

.login-body {
  position: relative;
  min-height: 100vh;
  background: #050910;
  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* animated nebula layer */
.login-body::before {
  content: "";
  position: fixed;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background:
    radial-gradient(circle at 20% 20%, rgba(79,170,255,0.35), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(139,92,246,0.35), transparent 55%),
    radial-gradient(circle at 50% 10%, rgba(56,189,248,0.30), transparent 55%),
    #050910;
  opacity: 0.9; /* strength of the nebula */
  filter: blur(6px) brightness(1.15);
  animation: spaceMove 35s ease-in-out infinite;
  z-index: -1;
}

/* ==========================================================
   STARFIELD — Multi Layer Parallax
========================================================== */

.star-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-repeat: repeat;
  pointer-events: none;
  z-index: -2;
}

/* far stars — faint, slow */
#stars-back {
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 15% 55%, rgba(255,255,255,0.2), transparent);
  animation: starsBackMove 120s linear infinite;
}

/* mid stars — medium brightness & speed */
#stars-mid {
  background-image:
    radial-gradient(1.4px 1.4px at 5% 70%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.4px 1.4px at 25% 35%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.4px 1.4px at 45% 65%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.4px 1.4px at 60% 25%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.4px 1.4px at 78% 80%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.4px 1.4px at 92% 50%, rgba(255,255,255,0.45), transparent);
  animation: starsMidMove 70s linear infinite;
}

/* near stars — brightest & fastest */
#stars-front {
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 30% 50%, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 48% 28%, rgba(255,255,255,0.85), transparent),
    radial-gradient(2px 2px at 65% 75%, rgba(255,255,255,0.95), transparent),
    radial-gradient(2px 2px at 82% 40%, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 95% 85%, rgba(255,255,255,0.9), transparent),
    radial-gradient(2px 2px at 5% 90%, rgba(255,255,255,0.85), transparent);
  animation: starsFrontMove 40s linear infinite;
}

/* login info for when password is incorrect */
#login-info{
  display:none;
  opacity: 0;
  font-size: 13px;
  color: rgb(254 202 202 / 1);
  transition: opacity ease-in-out
}

/* parallax speeds */
@keyframes starsBackMove {
  from { transform: translateY(0px); }
  to   { transform: translateY(-250px); }
}

@keyframes starsMidMove {
  from { transform: translateY(0px); }
  to   { transform: translateY(-450px); }
}

@keyframes starsFrontMove {
  from { transform: translateY(0px); }
  to   { transform: translateY(-700px); }
}

/* ==========================================================
   TWINKLE LAYER — denser, random fade
========================================================== */

#twinkle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(2px 2px at 20% 10%, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 40% 30%, rgba(255,255,255,0.75), transparent),
    radial-gradient(2px 2px at 60% 75%, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 80% 45%, rgba(255,255,255,0.8), transparent),
    radial-gradient(2px 2px at 15% 80%, rgba(255,255,255,0.75), transparent),
    radial-gradient(2px 2px at 90% 20%, rgba(255,255,255,0.8), transparent);
  animation: twinkle 3s infinite ease-in-out alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.2; }
  50%  { opacity: 1; }
  100% { opacity: 0.3; }
}


/* ==========================================================
   SHOOTING STAR
========================================================== */

/* SHOOTING STAR — right to left diagonal */

.shooting-star {
  position: fixed;
  width: 2px;
  height: 80px;
  background: linear-gradient(180deg, white, transparent);
  opacity: 0.85;
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: -1;

  /* start off-screen to the right */
  top: var(--startY, 10%);
  left: 110%;

  animation: shoot 2s ease-in-out forwards;
}

@keyframes shoot {
  0% {
    transform: translate(0, 0) rotate(-45deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    /* move down-left across the screen */
    transform: translate(-900px, 500px) rotate(-45deg);
    opacity: 0;
  }
}




/* LOGIN CARD ------------------------------------------- */

.login-container {
  width: 360px;
  padding: 30px;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 40px rgba(0, 60, 130, 0.35);

  text-align: center;
  animation: fadeIn 1.2s ease;
}

/* header */

.login-logo {
  width: 100px;
  margin-bottom: 8px;
}

.login-header h1 {
  margin-top: 10px;
  color: #dfe8ff;
  font-size: 24px;
  font-weight: 700;
}

.login-sub {
  font-size: 14px;
  color: #a4b7d9;
  margin-bottom: 25px;
}

/* INPUT SECTION ----------------------------------------- */

.login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.login-input {
  width: 85%;
  padding: 12px;

  background: rgba(0, 15, 40, 0.85);
  border: 1px solid rgba(80, 150, 255, 0.25);
  border-radius: 8px;

  color: white;
  font-size: 14px;
  outline: none;
  transition: 0.25s ease;
}

.login-input:focus {
  border-color: #4faaff;
  box-shadow: 0 0 8px rgba(80, 150, 255, 0.45);
  background: rgba(15, 30, 60, 0.95);
}

/* LOGIN BUTTON ------------------------------------------ */

.login-btn {
  width: 85%;
  padding: 12px;
  border-radius: 8px;
  border: none;

  background: linear-gradient(135deg, #4faaff, #3473ff);
  color: white;
  font-size: 15px;
  cursor: pointer;

  transition: 0.25s ease;
  box-shadow: 0 4px 10px rgba(50, 100, 255, 0.45);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(60, 120, 255, 0.55);
}

/* hint text */

.login-hint {
  font-size: 13px;
  color: #7f8bb0;
  margin-top: 10px;
}

/* FADE IN ANIMATION ------------------------------------- */

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

/* ==========================================================
   DASHBOARD + ALL OTHER STYLES
   (All your original dashboard styles kept exactly)
========================================================== */

/* HEADER + NAVIGATION ----------------------------------- */

header {
  background: #0D0E14;
  border-bottom: 1px solid #1B1C24;
  position: sticky;
  top: 0;
  z-index: 30;
}

header .inner {
  max-width: 1200px;
  margin: auto;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav {
  background: #0D0E14;
  border-bottom: 1px solid #1B1C24;
  position: sticky;
  top: 64px;
  z-index: 20;
}

nav .inner {
  max-width: 1200px;
  margin: auto;
  padding: 10px 22px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  color: #D0D6E1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.05);
}

.nav-btn.active {
  background: rgba(59,130,246,0.20);
  border-color: rgba(59,130,246,0.35);
  color: #90BBFF;
}

#staffNavDropdown {
  position: absolute;
  top: 42px;
  left: 0;
  width: 160px;
  background: #11121A;
  border: 1px solid #1C1D27;
  border-radius: 10px;
  display: none;
}

.dropdown-item {
  width: 100%;
  padding: 10px 14px;
  color: #D0D6E1;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: rgba(255,255,255,0.06);
}

/* ==========================================================
   MAIN CONTENT, CARDS, TABLES, PANELS
========================================================== */

/* (ALL your dashboard styling kept exactly as-is from here down) */

main {
  max-width: 1200px;
  margin: 25px auto;
  padding: 0 22px;
}

.section-card {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.25s ease;
}

.section-card.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.card {
  background: #11121A;
  border: 1px solid #1C1D27;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #D0D6E1;
}

/* stat cards */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 20px;
}

.stat-card {
  background: #11121A;
  border: 1px solid #1C1D27;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.stat-icon {
  padding: 12px;
  background: rgba(59,130,246,0.15);
  border-radius: 10px;
}

.stat-label {
  font-size: 0.88rem;
  color: #8C94A5;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: bold;
  color: #E5E7EB;
}

/* tables */

.table-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1C1D27;
  background: #11121A;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.styled-table th {
  padding: 14px;
  text-align: left;
  background: #15161F;
  color: #90BBFF;
  font-weight: 600;
  border-bottom: 1px solid #1C1D27;
}

.styled-table td {
  padding: 12px;
  border-bottom: 1px solid #15161F;
  color: #D0D6E1;
}

.styled-table tr:hover td {
  background: rgba(255,255,255,0.05);
  cursor: pointer;
}

.view-btn {
  padding: 8px 12px;
  background: rgba(59,130,246,0.18);
  border-radius: 8px;
  font-size: 0.82rem;
  color: #90BBFF;
  border: none;
  cursor: pointer;
}

.view-btn:hover {
  background: rgba(59,130,246,0.26);
}

/* inputs */

.input-clean {
  background: #0C0D13;
  border: 1px solid #1C1D27;
  color: #E5E7EB;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.input-clean:focus {
  outline: none;
  border-color: #3B82F6;
}

/* pagination */

.pagination {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}

.pagination button {
  min-height:24px;
  min-width:17px;
  background: #0C0D13;
  color: #D0D6E1;
  border: 1px solid #1C1D27;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.pagination button.active {
  background: rgba(59,130,246,0.28);
  border-color: #3B82F6;
  color: #90BBFF;
}

.pagination button:hover {
  background: rgba(255,255,255,0.06);
}

/* right-side panels */

.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: 0.25s;
  display: none;
}

.panel-overlay.active {
  opacity: 1;
  display: block;
}

.panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  background: #11121A;
  border-left: 1px solid #1C1D27;
  transform: translateX(100%);
  transition: 0.28s ease;
  display: flex;
  flex-direction: column;
  z-index: 50;
}

.panel.active {
  transform: translateX(0);
}

.panel-header {
  padding: 20px;
  border-bottom: 1px solid #1C1D27;
  display: flex;
  justify-content: space-between;
}

.panel-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #E5E7EB;
}

.panel-subtitle {
  color: #A9AFC0;
  font-size: 0.85rem;
}

.panel-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.panel-box {
  background: #0C0D13;
  border: 1px solid #1C1D27;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.panel-section-title {
  font-size: 1rem;
  color: #90BBFF;
  margin-bottom: 6px;
}

.panel-actions {
  padding: 16px;
  border-top: 1px solid #1C1D27;
  display: flex;
  gap: 8px;
}

.action-btn {
  background: #0C0D13;
  border: 1px solid #1C1D27;
  padding: 10px;
  flex: 1;
  text-align: center;
  border-radius: 8px;
  color: #D0D6E1;
  cursor: pointer;
}

.action-btn:hover {
  background: rgba(59,130,246,0.20);
  color: #90BBFF;
}

/* Slide-in panel (right side) (Player) */
#playerSlidePanel {
    backdrop-filter: blur(10px);
}

.lux-glow {
    animation: luxGlow 2.2s ease-in-out infinite alternate;
}

@keyframes luxGlow {
    from { box-shadow: 0 0 15px rgba(59,130,246,0.4); }
    to   { box-shadow: 0 0 30px rgba(59,130,246,0.7); }
}


/* Slide-in panel (right side) (Server) */
#serverSlidePanel {
    backdrop-filter: blur(10px);
}

.lux-glow {
    animation: luxGlow 2.2s ease-in-out infinite alternate;
}

@keyframes luxGlow {
    from { box-shadow: 0 0 15px rgba(59,130,246,0.4); }
    to   { box-shadow: 0 0 30px rgba(59,130,246,0.7); }
}


/* Ban Mute Kick Reasons */
#modModal.show {
    opacity: 1;
    pointer-events: auto;
}


/* Player Activity Graph */

#playerChart {
    max-height: 240px !important;   /* was ~350px */
}

/* ADDING NOTE */

#noteModal.show {
    opacity: 1;
    pointer-events: auto;
}

#modModal.show,
#noteModal.show {
    opacity: 1;
    pointer-events: auto;
}


/* ==========================================================
   DASHBOARD — ULTRA DENSE STARFIELD (Super Bright Galaxy Mode)
========================================================== */

.dashboard-body {
  background: #07090F;
  overflow-x: hidden;
  position: relative;
}

/* Base class */
.dash-star-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-repeat: repeat;
  z-index: -20;
}

/* ==========================================================
   BACK LAYER — extremely dense, faint, slow
========================================================== */

#dash-stars-back {
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 5% 10%, rgba(255,255,255,0.28), transparent),
    radial-gradient(1px 1px at 12% 80%, rgba(255,255,255,0.28), transparent),
    radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 40% 65%, rgba(255,255,255,0.28), transparent),
    radial-gradient(1px 1px at 55% 25%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.28), transparent),
    radial-gradient(1px 1px at 85% 70%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 95% 20%, rgba(255,255,255,0.28), transparent),
    radial-gradient(1px 1px at 30% 90%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 65% 10%, rgba(255,255,255,0.28), transparent);
  animation: dashBackMove 150s linear infinite;
}

/* ==========================================================
   MID LAYER — dense medium stars
========================================================== */

#dash-stars-mid {
  opacity: 0.75;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 60%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.5px 1.5px at 22% 30%, rgba(255,255,255,0.52), transparent),
    radial-gradient(1.5px 1.5px at 35% 75%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.5px 1.5px at 50% 20%, rgba(255,255,255,0.50), transparent),
    radial-gradient(1.5px 1.5px at 65% 55%, rgba(255,255,255,0.52), transparent),
    radial-gradient(1.5px 1.5px at 78% 85%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.5px 1.5px at 90% 40%, rgba(255,255,255,0.50), transparent),
    radial-gradient(1.5px 1.5px at 15% 15%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.5px 1.5px at 45% 90%, rgba(255,255,255,0.50), transparent),
    radial-gradient(1.5px 1.5px at 82% 10%, rgba(255,255,255,0.55), transparent);
  animation: dashMidMove 95s linear infinite;
}

/* ==========================================================
   FRONT LAYER — very bright, very dense
========================================================== */

#dash-stars-front {
  opacity: 0.9;
  background-image:
    radial-gradient(2px 2px at 15% 25%, rgba(180, 200, 255, 0.95), transparent),
    radial-gradient(2px 2px at 30% 50%, rgba(160, 220, 255, 0.95), transparent),
    radial-gradient(2px 2px at 45% 15%, rgba(200, 170, 255, 0.90), transparent),
    radial-gradient(2px 2px at 65% 75%, rgba(170, 140, 255, 0.95), transparent),
    radial-gradient(2px 2px at 82% 45%, rgba(150, 180, 255, 0.92), transparent),
    radial-gradient(2px 2px at 95% 85%, rgba(180, 220, 255, 0.90), transparent);
  animation: dashFrontMove 55s linear infinite;
}


/* ==========================================================
   PARALLAX SPEEDS
========================================================== */

@keyframes dashBackMove {
  from { transform: translateY(0px); }
  to   { transform: translateY(-300px); }
}

@keyframes dashMidMove {
  from { transform: translateY(0px); }
  to   { transform: translateY(-500px); }
}

@keyframes dashFrontMove {
  from { transform: translateY(0px); }
  to   { transform: translateY(-750px); }
}

/* ==========================================================
   TWINKLE — stronger, visible
========================================================== */

#dash-twinkle {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -10;

  background-image:
    radial-gradient(2.5px 2.5px at 25% 25%, rgba(255,255,255,1), transparent),
    radial-gradient(2.5px 2.5px at 60% 55%, rgba(255,255,255,0.95), transparent),
    radial-gradient(2.5px 2.5px at 45% 80%, rgba(255,255,255,1), transparent),
    radial-gradient(2.5px 2.5px at 75% 35%, rgba(255,255,255,0.95), transparent);
  animation: dashTwinkle 3s infinite ease-in-out alternate;
  opacity: 0.55;
}

@keyframes dashTwinkle {
  0%   { opacity: 0.25; }
  50%  { opacity: 0.8; }
  100% { opacity: 0.35; }
}

/* ==========================================================
   DASHBOARD NEBULA LAYER — Soft Color, Professional
========================================================== */

#dashboard-nebula {
  position: fixed;
  inset: 0;
  z-index: -30;
  pointer-events: none;

  background:
    radial-gradient(circle at 20% 30%, rgba(80, 120, 255, 0.25), transparent 65%),
    radial-gradient(circle at 75% 60%, rgba(140, 70, 255, 0.22), transparent 70%),
    radial-gradient(circle at 50% 85%, rgba(60, 140, 255, 0.18), transparent 75%);

  filter: blur(45px) brightness(1.1);
  animation: nebulaFloat 38s ease-in-out infinite;
  opacity: 0.35; /* balanced — not overpowering */
}

@keyframes nebulaFloat {
  0%   { transform: translate(0px, 0px) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.08); }
  100% { transform: translate(0px, 0px) scale(1); }
}
