/* Estilo do menu superior */
header {
  width: 100%;
  background: #1E3A8A; /* azul-escuro */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-info p {
  margin: 0;
}

.status {
  font-size: 0.9rem;
  font-weight: bold;
}

.menu-actions button {
  margin-left: 10px;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.menu-actions button:hover {
  opacity: 0.9;
}

#reativarPlano {
  background: #16a34a; /* verde */
  color: white;
  display: none;
}

#cancelarPlano {
  background: #dc2626; /* vermelho */
  color: white;
  display: none;
}

#verManual {
  background: #149806; /* verde */
  color: white;
  
}

#logout {
  background: #475569; /* cinza */
  color: white;
}

#assinarPlano {
  background: #2563eb; /* azul */
  color: white;
  display: none;
}

/* Ajusta o conteúdo abaixo do header */
.container {
  margin-top: 90px;
  text-align: start;
}

/* Hamburger menu styles */
.hamburger {
  display: none;
}

.dropdown {
  display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
  .menu-actions {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .dropdown {
    display: block;
  }
  .dropdown-menu {
    width: 220px;
    right: 0;
    left: auto;
    background-color: #1e293b;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }
  .dropdown-item {
    color: white;
    padding: 12px 16px;
    text-align: left;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
  }
  .dropdown-item:hover {
    background-color: #334155;
  }
  /* Spinner global para mobile (mostrado quando dropdown fecha) */
  .mobile-spinner {
    display: none;
    align-items: center;
    justify-content: center;
  }
  @media (max-width: 768px) {
    .mobile-spinner { display: inline-flex; margin-left: 8px; }
  }
}

.btn-disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}
