@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&display=swap");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

body {
  margin: 0;
  background: radial-gradient(
  ellipse at center,
  rgba(29, 58, 111, 0.825),
  transparent 60%
  ),
  rgba(0, 0, 0, 0.949);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e0e0e0;
  font-family: "Poppins", sans-serif;
  scrollbar-width: thin;
  scrollbar-color: #4e51b6 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: all 0.3s ease;
}

.error-container {
  flex: 1;
}

@media (max-width: 871px) {
  body {
    background: radial-gradient(
    ellipse at center,
    rgba(29, 58, 111, 0.825),
    transparent 90%
    ),
    rgba(0, 0, 0, 0.949);
  }
}

nav {
  background: rgba(17, 25, 40, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-left img {
  user-select: none;
  pointer-events: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.nav-left img:hover {
  transform: scale(1.1);
}

.nav-left span {
  user-select: none;
  pointer-events: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: #e0e0e0;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.nav-right .buttons {
  position: relative;
  display: flex;
  gap: 32px;
}

.nav-right .buttons a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding: 4px 0;
}

.nav-right .buttons a:hover {
  color: #fff;
}

.indicator {
  position: absolute;
  bottom: 0;
  height: 2.4px;
  width: 0;
  background: linear-gradient(90deg, #4fc3f7, #81d4fa);
  box-shadow: 0 0 1px #4fc3f7aa, 0 0 2px #81d4fa88;
  border-radius: 999px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  filter: drop-shadow(0 0 6px #4fc3f799);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-right .buttons {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: 70px;
}

.nav-right .buttons a {
  color: #ccc;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-right .buttons a:hover {
  color: #fff;
}

.user-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  margin-right: 10px;
  z-index: 1000;
}

.user-dropdown .user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #4fc3f7;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 4px #4fc3f76a;
}

.user-dropdown:hover .user-avatar {
  box-shadow: 0 0 8px #81d4fa99;
}

.arrow-icon {
  width: 17px;
  height: 17px;
  transition: transform 0.3s ease;
  fill: #ccc;
}

.arrow-icon.rotate {
  transform: rotate(180deg);
}

.user-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: linear-gradient(145deg, rgba(22, 33, 55, 1), rgba(12, 18, 30, 1));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(90, 140, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  list-style: none;
  padding: 0.5rem 0;
  z-index: 3000;
  min-width: 180px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  visibility: hidden;
}

.user-menu.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  z-index: 3000;
}

.user-menu li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14.5px;
  color: #ddd;
  transition: all 0.25s ease;
  user-select: none;
}

.user-menu li a:hover {
  background: linear-gradient(135deg, #4fc3f7 0%, #81d4fa 100%);
  color: #000;
  font-weight: 500;
}

.user-menu li.btn {
  display: none;
}

.menu-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: inherit;
  opacity: 0.85;
}

footer {
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px 20px;
  text-align: center;
  color: #bbb;
  font-size: 14px;
  margin-top: 40px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #2f3c91, #6b2b92);
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.6);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #4e51b6, #a049d3);
  transform: scale(1.1);
}

::-webkit-scrollbar-track:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
  .nav-right .buttons {
    gap: 19px;
    margin-right: 10px;
    margin-left: 40px;
  }

  .nav-right .user-dropdown {
    margin-left: 40px;
  }

  .nav-right .buttons,
  .nav-right .buttons a {
    display: none;
  }

  .user-menu li.btn {
    display: block;
  }
}

.nav-login-btn {
  color: #bfbfbf;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
  padding: 4px 0;
}

.nav-login-btn:hover {
  color: #fff;
}