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

header {
  text-align: center;
  padding: 30px 20px;
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, var(--disco-purple), var(--disco-pink), var(--disco-blue));
  margin-bottom: 40px;
  border-bottom: 4px solid var(--disco-yellow);

  /* clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); */
}

header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--disco-purple), var(--disco-pink), var(--disco-blue));
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  z-index: 1;
}

.header-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 2; /* Aumentado */
}

.header-decoration::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  top: -150px;
  left: -150px;
  animation: float 6s ease-in-out infinite;
}

.header-decoration::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  bottom: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.header-content {
  margin: 0 auto;
  position: relative;
  z-index: 3; /* Aumentado para ficar acima do fundo */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.logo-container:hover {
  transform: translateY(-7px);
}

img.logo {
  width: 6.2rem;
  filter: drop-shadow(0 0 10px var(--disco-pink));
}

.logo-container h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--neon-text);
  margin-bottom: 0;
  text-shadow: 
      0 0 10px var(--disco-pink),
      0 0 20px var(--disco-pink),
      0 0 30px var(--disco-pink);
  letter-spacing: 4px;
  position: relative;
  display: inline-block;
  animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
  from {
      text-shadow: 
          0 0 10px var(--disco-pink),
          0 0 20px var(--disco-pink),
          0 0 30px var(--disco-pink);
  }
  to {
      text-shadow: 
          0 0 5px var(--disco-pink),
          0 0 15px var(--disco-pink),
          0 0 25px var(--disco-pink),
          0 0 35px var(--disco-blue);
  }
}

.logo-area{
  display: flex;
  align-items: center;
}

/* LADO DIREITO */
.header-area {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  position: relative; 
}

a{
  text-decoration: none;
}

.fa-bell{
    position: relative;
    display: inline-block;
    color: var(--disco-yellow);
    font-size: 1.5rem;
    transition: color 0.3s;
    transition: all ease 0.2s;
}

.fa-bell:hover {
    transform: scale(1.15) !important;
}

.bell-active {
    color: var(--disco-yellow);
    display: inline-block; 
    animation: bell-swing 2s ease-in-out infinite;
    transform-origin: top center;
    transition: color 0.3s;
}

.badge-notify {
    position: absolute;
    bottom: -4px;
    left: 15px;
    color: white;
    font-size: .83rem;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0);
}

@keyframes bell-swing {
    0% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-5deg); }
    50% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

/* Estilos do dropdown */
.user-dropdown {
  position: relative;
  display: inline-block;
}

/* Estilo para o botão de login (usuário anônimo) */
.login-header-btn{
  color: var(--neon-text);
  font-size: 1.1rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.6);
  padding: 12px 25px;
  border-radius: 8px;
  display: inline-block;
  border: 2px solid var(--disco-yellow);
  box-shadow: 0 0 15px var(--disco-yellow);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  width: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
}

.login-header-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--disco-yellow);
  background: rgba(255, 255, 0, 0.2);
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--disco-yellow);
  box-shadow: 0 0 10px var(--disco-yellow);
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--neon-text);
  font-weight: 600;
  position: relative;
  z-index: 4;
}

.user-trigger:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px var(--disco-yellow);
  background: rgba(255, 255, 0, 0.2);
}


.user-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--disco-yellow);
}

.username {
  font-size: 1rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--disco-yellow);
}

.fa-chevron-down {
  transition: transform 0.3s ease;
  color: var(--disco-yellow);
  font-size: 12px;
  transform: rotate(-90deg);
}

.dropdown-menu {
    position: absolute;
    right: -10%;
    margin-top: 10px;
    width: 200px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 2px solid var(--disco-yellow);
    box-shadow: 0 0 15px var(--disco-yellow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    z-index: 1000; 
    overflow: visible; 
  }


.dropdown-link {
  display: block;
  padding: 12px 15px;
  color: var(--neon-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1001;
}

.dropdown-link:hover {
  background: rgba(255, 255, 0, 0.2);
  color: var(--disco-yellow);
  text-shadow: 0 0 5px var(--disco-yellow);
}

.logout-form {
  padding: 0;
  margin: 0;
}

.logout {
  background: rgba(255, 0, 0, 0.3);
  color: var(--neon-text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  width: 100%;
}

.logout:hover {
  background: rgba(255, 0, 0, 0.5);
  color: var(--disco-yellow);
  text-shadow: 0 0 5px var(--disco-orange);
}

/* Estilo do overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Spinner */
.loading-spinner {
  color: white;
  font-size: 2rem;
}
