/*navbar dashbord*/
.special-navbar {
  background-color: #1a1840 !important;
  padding: 0.5rem 3rem !important;
  justify-content: space-between;
}
.login-wrapper {
  margin-right: 2rem;
}

.login-button {
  display: flex;
  align-items: center;
  margin-right: -1rem;
  gap: 0.5rem;
  background-color: white;
  color: #1a1840;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.login-button:hover {
  background-color: #c8abd6;
  color: #1b1a2e;
  transform: scale(1.05);
}

.nav-link-active {
  background-color: rgba(255, 255, 255, 0.844) !important;
  color: #1e1646 !important;
  transform: scale(1.05);
  font-weight: bold;
}

@media (max-width: 720px) {
  .special-navbar {
    flex-direction: row;
    padding: 0.5rem 1rem;
  }

  .login-wrapper {
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .login-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    gap: 0.4rem;
  }

  .login-button svg {
    font-size: 1rem;
  }

  .logo {
    width: 36px;
    height: 36px;
    transform: scale(2.5) translateX(2px);
  }
}
@media (max-width: 390px) {
  .login-button {
    width: 100px;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    gap: 0.3rem;
  }

  .login-wrapper {
    margin-right: 0.3rem;
  }
}

/*navbar pag principale*/

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #201c55;
  color: #c8abd6;
  padding: 0.3rem 3rem;
  position: relative;
  height: 50px;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transform: scale(3.8) translateX(10px);
  transform-origin: center;
  padding-right: 0.8rem;
}

.hamburger {
  display: none;
  z-index: 1001;
  cursor: pointer;
  font-size: 1.5rem;
  color: #c8abd6;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 3rem;
  flex-direction: row;
}

.nav-links li a,
.dropdown-content a {
  background-color: transparent;
  color: #c8abd6;
  padding: 0.6rem 0.5rem;
  border: 1px solid #c8abd6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  justify-content: center;
  width: 90px;
}

.nav-links li a:hover,
.dropdown-content a:hover {
  background-color: white;
  color: #1e1646;
  transform: scale(1.05);
}

.profile-dropdown {
  position: relative;
}

.profile-dropdown.open .dropdown-content {
  max-height: 200px;
  opacity: 1;
  transform: scaleY(1);
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.8rem;
  background-color: rgba(145, 40, 237, 0.51);
  backdrop-filter: blur(6px);
  border-radius: 1rem;
  margin-top: 0.5rem;
  align-items: center;
}

.dropdown-content a {
  border: none !important;
  font-size: 0.85rem;
  width: 100%;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 40vw;
  height: 100%;
  min-height: 200px;
  max-width: 170px;
  min-width: 170px;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(2px);
  z-index: 999;
  pointer-events: none;
}

/* -------------------- RESPONSIVE: MOBIL -------------------- */
@media (max-width: 720px), (max-height: 500px) and (orientation: landscape) {
  .sidebar-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 40vw;
    min-width: 170px;
    max-width: 250px;
    height: 100%;
    background-color: rgba(42, 4, 93, 0.703) !important;
    backdrop-filter: blur(6px);
    z-index: 999;
    pointer-events: auto;
    display: block !important;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #1e194a;
    padding: 0.6rem 1rem;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    display: flex;
  }

  .logo {
    height: 40px;
    transform: scale(3) translateX(5px);
    margin-left: 1rem;
  }

  .hamburger {
    display: block;
    font-size: 2rem;
    color: #c8a4e4;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 1001;
    background-color: transparent;
    border: none;
    padding: 0;
    outline: inherit;
  }

  .nav-links {
    position: absolute;
    top: -65px;
    right: 0;
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    height: 100vh;
    padding: 120px 0 2rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    box-sizing: border-box;
    display: none;
    justify-content: flex-start;
    margin-right: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .nav-links li a,
  .profile-main-button {
    width: 100px;
    margin: 0;
    text-align: center;
    justify-content: center;
  }

  .profile-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dropdown-content {
    width: 120px;
    margin-top: 0.5rem;
    background-color: rgba(43, 4, 93, 0.597) !important;
    backdrop-filter: blur(6px);
    padding: 0.8rem;
    border-radius: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 10%;
    transform: translateX(-10%);
  }

  .profile-dropdown.open .dropdown-content {
    display: flex;
  }

  .dropdown-content a {
    width: 100%;
    font-size: 0.85rem;
    text-align: center;
    border: none;
  }
}
.nav-links.open::before {
  display: none;
}

.nav-button-stripe {
  width: 100px;
  margin: 0;
}

/* -------------------- RESPONSIVE: SMALL MOBIL -------------------- */

@media (max-width: 300px) {
  .sidebar-overlay {
    display: none;
  }

  .navbar {
    height: 55px;
    padding: 0.4rem 0.6rem;
    background-color: #1e194a;
  }

  .logo {
    transform: scale(3) translateX(2px);
    margin-left: 2rem;
  }

  .hamburger {
    font-size: 1.5rem;
    right: 0.6rem;
  }

  .nav-links {
    position: absolute;
    top: -50px;
    right: 0;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 5000px;
    padding: 0.5rem 0.5rem;
    background-color: rgba(43, 4, 93, 0.597);
    backdrop-filter: blur(6px);
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    z-index: 999;
    display: none;
    padding-top: 115px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a,
  .profile-main-button {
    width: 55%;
    max-width: 120px;
    font-size: 0.75rem;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .nav-links li a svg,
  .profile-main-button svg {
    font-size: 0.85rem;
  }

  .dropdown-content {
    width: 70%;
    max-width: 120px;
    padding: 0.4rem;
    border-radius: 6px;
    position: static;
    transform: none;
    margin-top: 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: none;
    box-shadow: 0 2px 5px rgba(43, 4, 93, 0.597);
  }

  .dropdown-content a {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    width: 100%;
    max-width: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .dropdown-content a svg {
    font-size: 0.85rem;
  }
  .nav-button-stripe {
    width: 55%;
    max-width: 120px;
    font-size: 0.75rem;
    padding: 0.5rem 0.6rem;
  }

  .nav-button-stripe svg {
    font-size: 0.85rem;
  }
}

/* -------------------- RESPONSIVE: DESKTOP -------------------- */
@media (min-width: 721px) {
  .profile-dropdown {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dropdown-content {
    position: absolute;
    top: 100%;
    left: -30%;
    transform: translateX(-30%);
    margin-top: 0.4rem;
    background-color: rgba(42, 4, 93, 0.703);
    backdrop-filter: blur(6px);
    border-radius: 1rem;
    padding: 1rem 0.8rem;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 100;
    min-width: 160px;
  }

  .sidebar-overlay {
    display: none;
  }
}

.nav-button-stripe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: #c8abd6;
  border: 1px solid #c8abd6;
  border-radius: 8px;
  padding: 0.6rem 0.5rem;
  width: 160px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: normal;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.nav-button-stripe:hover,
.nav-button-stripe:focus {
  background-color: white;
  color: #1e1646;
  border-color: white;
  transform: scale(1.05);
  outline: none;
}

.nav-button-stripe svg {
  font-size: 1.1em;
}

.nav-button-stripe:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #555555;
  border-color: #444444;
  color: #aaaaaa;
  transform: none;
}
