/* ============ NAVBAR STYLES ============ */

:root {
  --primary: #00d4ff;
  --primary-dark: #00aaff;
  --bg: #0f1929;
  --bg-secondary: #1a1f3a;
  --text: #e0e0e0;
  --text-secondary: #a0a0a0;
  --border: #4a7c8c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============ NAVBAR CONTAINER ============ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(26, 31, 58, 0.98) 0%, rgba(15, 25, 41, 0.95) 100%);
  border-bottom: 2px solid var(--border);
  backdrop-filter: blur(10px);
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

/* ============ NAVBAR BRAND ============ */

.navbar-brand {
  flex-shrink: 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ============ NAVBAR MENU ============ */

.navbar-menu {
  display: flex;
  gap: 30px;
  flex: 1;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.15);
  border-bottom: 2px solid var(--primary);
}

/* ============ NAVBAR ACTIONS ============ */

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.user-info {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 6px;
  background: rgba(74, 124, 140, 0.1);
  border: 1px solid var(--border);
}

.logout-btn {
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.cta-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg);
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

/* ============ MOBILE MENU TOGGLE ============ */

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

/* ============ MOBILE MENU ============ */

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(26, 31, 58, 0.99) 0%, rgba(15, 25, 41, 0.98) 100%);
  border-bottom: 2px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 999;
}

.mobile-menu.active {
  max-height: 400px;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 0;
}

.mobile-link {
  color: var(--text-secondary);
  padding: 15px 20px;
  text-decoration: none;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
  border-bottom: 1px solid rgba(74, 124, 140, 0.2);
}

.mobile-link:hover {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
  padding-left: 30px;
}

.mobile-link.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg);
  font-weight: bold;
  margin: 10px;
  border-radius: 6px;
  border: none;
}

.mobile-link.logout {
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  color: white;
  font-weight: bold;
  margin: 10px;
  border-radius: 6px;
  border: none;
}

/* ============ RESPONSIVE DESIGN ============ */

@media (max-width: 768px) {
  .navbar-container {
    gap: 15px;
    padding: 12px 15px;
  }

  .navbar-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .navbar-actions {
    gap: 10px;
  }

  .user-info {
    display: none;
  }

  .logo {
    font-size: 1.2rem;
  }

  .cta-button {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 10px 12px;
    gap: 10px;
  }

  .logo {
    font-size: 1rem;
  }

  .navbar-actions {
    gap: 8px;
  }

  .cta-button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* ============ SMOOTH SCROLLING ============ */

html {
  scroll-behavior: smooth;
}

/* ============ ADD PADDING TO BODY FOR NAVBAR ============ */

body {
  padding-top: 70px;
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
}

/* ============ ACTIVE LINK INDICATOR ============ */

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.7;
}

/* ============ ANIMATION: Fade In ============ */

@keyframes fadeInNavbar {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#navbar {
  animation: fadeInNavbar 0.3s ease;
}
