body {
  margin: 0;
  background: #0f172a;
  color: white;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e293b;
  padding: 20px 40px;
  border-bottom: 1px solid #334155;
}

.header h1 {
  font-size: 20px;
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #cbd5e1;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #38bdf8;
}

.btn-login, .btn-logout {
  background-color: #3b82f6;
  padding: 8px 14px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-login:hover, .btn-logout:hover {
  background-color: #2563eb;
}

.user-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #1e293b;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.user-info img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #475569;
}
.profile-menu {
  position: absolute;
  top: 60px;
  right: 40px;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  width: 180px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  z-index: 999;
}

.profile-menu a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.profile-menu a:hover {
  background-color: #334155;
}

.profile-menu.hidden {
  display: none;
}

.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(to bottom, #1e293b, #0f172a);
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  color: #94a3b8;
  font-size: 18px;
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 1s ease-out;
}

.slide-down {
  animation: slideDown 0.7s ease-out;
}

.fade-in {
  animation: fadeInUp 1.2s ease-out;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(15, 23, 42, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal.hidden {
  display: none;
}
.modal-content {
  background-color: #1e293b;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.modal-content input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 6px;
  border: none;
  background-color: #334155;
  color: white;
}
.modal-content button {
  margin-top: 15px;
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  background-color: #3b82f6;
  color: white;
  cursor: pointer;
}
.modal-content .close {
  background-color: #ef4444;
  margin-left: 10px;
}
#teamMsg {
  margin-top: 15px;
  color: #facc15;
  font-size: 14px;
}

.profile-box {
  max-width: 700px;
  margin: 60px auto;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  text-align: center;
  color: #e2e8f0;
  animation: fadeInUp 0.5s ease-out;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  margin-bottom: 10px;
}

.discord-id {
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 20px;
}

.team-section {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border: 2px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3), 0 0 40px rgba(59, 130, 246, 0.2);
  padding: 20px;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 400px;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3), 0 0 30px rgba(59, 130, 246, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 0 0 50px rgba(59, 130, 246, 0.3);
  }
}

.team-section p {
  margin: 8px 0;
  font-size: 16px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dashboard-style {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
  padding: 25px;
  border-radius: 14px;
  margin: 20px auto;
  max-width: 420px;
  animation: glowPulse 4s ease-in-out infinite;
  color: #e2e8f0;
}

.dashboard-style p {
  margin: 12px 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-style strong {
  color: #93c5fd;
  margin-right: 4px;
}

.dashboard-style .icon {
  font-size: 18px;
  color: #38bdf8;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3), 0 0 30px rgba(59, 130, 246, 0.1);
  }
  50% {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6), 0 0 50px rgba(59, 130, 246, 0.3);
  }
}


.stats-section {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-card {
  background-color: #1e293b;
  border: 1px solid #334155;
  padding: 16px 20px;
  border-radius: 10px;
  width: 160px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.stat-card h4 {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.stat-card p {
  font-size: 20px;
  font-weight: bold;
  color: #38bdf8;
}

.not-in-team {
  color: #f87171;
  margin-bottom: 20px;
}

.position-form {
  text-align: center;
  margin-top: 20px;
}

.position-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.position-card {
  background-color: #1e293b;
  padding: 15px 25px;
  border-radius: 10px;
  cursor: pointer;
  color: #cbd5e1;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  user-select: none;
}

.position-card:hover {
  background-color: #334155;
}

.position-card.selected {
  background-color: #2563eb;
  color: white;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
  backdrop-filter: blur(4px);
}

.position-card.selected::after {
  content: "✔️";
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #0f172a;
  border: 2px solid #38bdf8;
  border-radius: 50%;
  font-size: 14px;
  padding: 4px;
}


#savePositionBtn {
  padding: 10px 20px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

#savePositionBtn:hover {
  background-color: #2563eb;
}
