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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(52, 58, 64, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  transition: background-color 0.3s ease;
  flex-wrap: wrap;
}

header.scrolled {
  background-color: #343a40;
}



.menu-toggle {
  display: none;
  font-size: 26px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

nav {
  width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

nav ul li {
  position: relative;
}


nav ul li a,
.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding: 5px 0;
  display: block;
  transition: color 0.3s ease;
}

nav ul li a:hover,
.logo a:hover {
  color: #00bcd4;
}

.logo {
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  position: absolute;
}

.logo a {
  font-size: 26px;
}

/* Dropdown */
.user-dropdown {
  position: absolute;
  top: 35px;
  right: 0;
  background-color: #fff;
  color: #333;
  min-width: 150px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  z-index: 999;
}

.user-dropdown a {
  color: #333;
  padding: 10px;
  text-decoration: none;
}

.user-dropdown a:hover {
  background-color: #f0f0f0;
}

nav ul li:hover .user-dropdown {
  display: flex;
}

/* Responsive Menu */
@media (max-width: 768px) {
  .logo {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    width: 100%;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background-color: #343a40;
    width: 100%;
    padding: 10px 0;
    margin-top: 10px;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    width: 100%;
    text-align: left;
    padding-left: 20px;
  }

  nav ul li a {
    padding: 10px 0;
    border-top: 1px solid #444;
  }

  .user-dropdown {
    position: static;
    background-color: #444;
    color: #fff;
    box-shadow: none;
    margin-left: 20px;
  }

  .user-dropdown a {
    color: #fff;
  }

  .user-dropdown a:hover {
    background-color: #555;
  }
}

.hero {
  background: linear-gradient(to right, #007BFF, #00BCD4);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 25px;
}

.cta-button {
  display: inline-block;
  padding: 12px 25px;
  background: #fff;
  color: #007BFF;
  font-weight: bold;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #0056b3;
  color: white;
}

.features {
  padding: 60px 20px;
  text-align: center;
}

.features h2 {
  font-size: 30px;
  margin-bottom: 30px;
}

.features ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.features li {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 250px;
  text-align: center;
  font-size: 18px;
}

.alert {
  padding: 15px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 25px;
  text-align: center;
  /* display: flex; */
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.alert-success {
  background-color: #e6ffed;
  color: #218838;
  border: 1px solid #b8f1c2;
}

.alert-error {
  background-color: #ffe6e6;
  color: #c82333;
  border: 1px solid #f5c6cb;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

button:disabled {
  opacity: 0.6;
  pointer-events: none;
}

footer a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #1e40af !important;
  text-decoration: underline !important;
}