/* =====================================
   🌑 NAVBAR ROOT VARIABLES (EDIT FREELY)
===================================== */
:root {
  --primary: #6500ff;
  --accent: #00ffcc;
  --bg-dark: #121212;
  --text-light: #f0f0f0;
  --danger: #ff4444;
}

/* =====================================
   🌑 NAVBAR USER (EDIT FREELY)
===================================== */

.user-badge {
  font-size: 0.9rem;
  color: var(--accent);
  margin-left: 10px;
  background: #1a1a1a;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.1);
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #2a2a2a;
  color: var(--accent);
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
  font-weight: 500;
  z-index: 9999;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================
   🧭 MAIN NAVBAR STYLES
===================================== */
.main-navbar {
  background: #1a1a1a;
  border-bottom: 2px solid var(--primary);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav-logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #00ffcc;
  text-decoration: none;
  text-shadow:
    -2px -2px 0 #000,
     3px -2px 0 #000,
    -2px  2px 0 #000,
     3px  2px 0 #000,
    -2px  0px 0 #000,
     2px  0px 0 #000,
     0px -2px 0 #000,
     0px  2px 0 #000,
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

/* =====================================
   📄 NAV LINKS
===================================== */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li a:hover {
  color: var(--accent);
}

.logout-link {
  color: var(--danger);
}

.logout-link:hover {
  color: #ff8888;
}

/* =====================================
   🍔 HAMBURGER MENU (MOBILE)
===================================== */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.toggle span:nth-child(2) {
  opacity: 0;
}
.hamburger.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =====================================
   📱 MOBILE MENU STYLES
===================================== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: #1a1a1a;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 20px;
    gap: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.4);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-links.nav-active {
    right: 0;
  }

  .nav-links li a {
    font-size: 1.2rem;
    width: 100%;
  }
}
