/* Header and Navigation Styles */

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --dark-color: #1f2937;
  --light-color: #f3f4f6;
  --border-color: #e5e7eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--dark-color);
  background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

/* Navbar Styles */
.navbar {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Logo Container */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
}

.logo-icon:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.logo-text {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: -0.5px;
}

.logo-text:hover {
  color: var(--secondary-color);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-item-group {
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  color: var(--dark-color);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.nav-link i {
  font-size: 1rem;
}

/* Button Styles in Nav */
.login-btn {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  background-color: transparent;
}

.login-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.register-btn {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.register-btn:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.admin-link {
  background-color: #fbbf24;
  color: white;
}

.admin-link:hover {
  background-color: #f59e0b;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  list-style: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--dark-color);
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 0.25rem;
}

.dropdown-item:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.4rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Alert Styles */
.alert {
  padding: 1rem 0;
  border-bottom: 2px solid var(--border-color);
}

.alert-success {
  background-color: #ecfdf5;
}

.alert-error {
  background-color: #fef2f2;
}

.alert-info {
  background-color: #eff6ff;
}

.alert-warning {
  background-color: #fffbeb;
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 2rem;
}

.alert-success .alert-content {
  color: var(--success-color);
}

.alert-error .alert-content {
  color: var(--error-color);
}

.alert-info .alert-content {
  color: var(--info-color);
}

.alert-warning .alert-content {
  color: var(--warning-color);
}

.alert-content i {
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar .container {
    padding: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    max-height: 500px;
  }

  .nav-link {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 0;
    justify-content: flex-start;
  }

  .nav-link:hover {
    background-color: var(--light-color);
  }

  .dropdown-menu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
    transform: none;
    background-color: #f9f9f9;
    margin-top: 0;
    transition: all 0.3s ease;
  }

  .dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
  }

  .logo-text {
    font-size: 1.2rem;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  min-height: calc(100vh - 200px);
}
