/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== BODY ===== */
body.dark-theme {
  min-height: 100vh;
  background: radial-gradient(circle at top, #222 0%, #000 60%);
  background-image: url("pic/6.png");
  /* 🔁 เปลี่ยนพื้นหลังได้ */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  font-family: 'Orbitron', sans-serif;
  color: white;
  text-align: center;
}

/* ===== TITLE ===== */
.hero-title {
  margin-top: 70px;
  font-size: 3.2rem;
  letter-spacing: 10px;
  text-transform: uppercase;
  position: relative;

  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.35),
    0 0 30px rgba(255, 255, 255, 0.18);
}

/* blur layer behind text */
.hero-title::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  color: rgba(255, 255, 255, 0.12);
  filter: blur(8px);
  z-index: -1;
}

.hero-subtitle {
  margin-top: 12px;
  font-size: 0.7rem;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== CENTER LOGO ===== */
.center-logo-box {
  width: 800px;
  height: 450px;
  margin: 60px auto;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(138, 137, 137, 0.06);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);

  border-radius: 18px;

  box-shadow:
    0 0 40px rgba(114, 114, 114, 0.08),
    inset 0 0 30px rgba(255, 255, 255, 0.05);
}

.center-logo {
  max-width: 450px;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.35));
}

/* ===== GROUP BUTTONS ===== */
.group-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-decoration: none;
  color: white;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;

  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);

  transition: all 0.3s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

/* ===== SUPERVISED ===== */
.supervised {
  margin: 70px auto 40px;
  opacity: 0.85;
}

.supervised-title {
  font-size: 0.75rem;
  letter-spacing: 4px;
  margin-bottom: 14px;
  color: #bfbfbf;
}

.supervised-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.supervised-names span {
  padding: 6px 14px;
  font-size: 0.7rem;
  letter-spacing: 2px;

  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);

  background: rgba(0, 0, 0, 0.35);
  color: #e0e0e0;

  cursor: default;
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: 40px;
  padding-bottom: 25px;

  font-size: 0.65rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.music-player {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 55px;
  height: 55px;

  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 22px;
  color: white;
  cursor: pointer;

  backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);

  z-index: 10;
  transition: all 0.3s ease;
}

.music-player:hover {
  transform: scale(1.1);
}

.credit-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.credit-link:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {

  /* ตัวหนังสือหัวเว็บ */
  .hero-title {
    margin-top: 40px;
    font-size: 1.8rem;
    letter-spacing: 5px;
  }

  .hero-subtitle {
    font-size: 0.6rem;
    letter-spacing: 4px;
  }

  /* กล่องโลโก้ตรงกลาง */
  .center-logo-box {
    width: 92%;
    height: auto;
    padding: 30px 0;
    margin: 40px auto;
  }

  .center-logo {
    max-width: 70%;
  }

  /* ปุ่มทีม */
  .group-buttons {
    gap: 12px;
    margin-top: 20px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.7rem;
    letter-spacing: 2px;
  }

  /* supervised */
  .supervised {
    margin: 50px auto 30px;
  }

  .supervised-title {
    font-size: 0.65rem;
  }

  .supervised-names span {
    font-size: 0.65rem;
    padding: 6px 12px;
  }

  /* footer */
  .site-footer {
    font-size: 0.55rem;
    line-height: 1.6;
    padding: 0 15px;
  }

  /* ปุ่มเพลง */
  .music-player {
    width: 45px;
    height: 45px;
    font-size: 18px;
    bottom: 15px;
    right: 15px;
  }
}

body {
  overflow-x: hidden;
}

.hero-title,
.center-logo-box,
.group-buttons {
  animation: fadeUp 1.2s ease forwards;
}

/* ================= ADMIN PAGE STYLES ================= */
.admin-login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.admin-login-container h2 {
  margin-bottom: 30px;
  font-size: 1.5rem;
  letter-spacing: 4px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  outline: none;
  transition: border 0.3s ease;
}

.form-group input:focus {
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.login-btn {
  width: 100%;
  margin-top: 20px;
  cursor: pointer;
}

.error-msg {
  color: #ff4d4d;
  font-size: 0.7rem;
  margin-top: 15px;
  display: none;
}

/* Dashboard Styles */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
  padding: 8px 16px;
  font-size: 0.7rem;
}

.logout-btn-fixed {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  padding: 8px 16px;
  font-size: 0.7rem;
  background: rgba(255, 77, 77, 0.2);
  border: 1px solid rgba(255, 77, 77, 0.4);
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s ease;
}

.logout-btn-fixed:hover {
  background: rgba(255, 77, 77, 0.4);
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
}