/* ==============================================
   INDICE
   ==============================================
   1. RESET E IMPOSTAZIONI GLOBALI
   2. LAYOUT GENERALE
   3. HEADER E NAVIGAZIONE
   4. FORM E INPUT
   5. BOTTONI
   6. MODALI E MESSAGGI
   7. DASHBOARD
   8. ATTIVAZIONE ISCRIZIONE
   9. COOKIE E CONSENSI
   10. COMUNI AUTOCOMPLETE
   11. ANIMAZIONI E EFFETTI
   12. UTILITÁ
   13. MEDIA QUERIES
   14. VERIFICA UTENTI
   ============================================== */

/* ==============================================
   1. RESET E IMPOSTAZIONI GLOBALI
   ============================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  background: url("public/bg-image.jpg") no-repeat center center fixed;
  background-size: cover;
  color: white;
  text-align: center;
  margin: 0;
  padding-top: 80px;
}

/* ==============================================
   2. LAYOUT GENERALE
   ============================================== */
.main-content {
  width: 90%;
  max-width: 700px;
  margin: 120px auto;
  padding: 40px;
  background: rgba(0, 100, 0, 0.85);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.form-container {
  width: 90%;
  max-width: 700px;
  margin: 40px auto;
  padding: 40px;
  background: rgba(0, 100, 0, 0.85);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.form-container label,
#registrazioneForm label,
form label,
label {
  color: white !important; /* Forza testo bianco per tutti i label */
  font-weight: bold !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important; /* Ombra più marcata */
  display: block !important;
  text-align: left !important;
  font-size: 16px !important;
  margin-bottom: 8px !important;
}

/* Selettore ancora più specifico per i label nel form di registrazione */
.main-content .form-container form .form-group label {
  color: white !important;
  background-color: rgba(0, 60, 0, 0.5) !important; /* Sfondo semi-trasparente scuro */
  padding: 5px 10px !important;
  border-radius: 4px !important;
  margin-bottom: 5px !important;
}

/* Stile per gli input del form per migliorare la leggibilità complessiva */
.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"] {
  padding: 12px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 5px !important;
  font-size: 16px !important;
  width: 100% !important;
  background-color: white !important;
}

/* Aumenta lo spazio tra i gruppi di form */
.form-group {
  margin-bottom: 25px !important;
}

.sandlovers-banner {
  width: 100%;
  text-align: center;
  padding: 10px 0;
  background-color: #fff; /* o un altro colore se preferisci */
}

.sandlovers-logo {
  max-width: 100%;
  height: auto;
  max-height: 100px; /* Regola questa dimensione in base alle tue preferenze */
}

.dashboard-container h1,
.dashboard-container h1 * {  /* Questo seleziona sia h1 che tutti i suoi elementi figli */
    color: #004d00 !important; /* Verde scuro con !important per sovrascrivere altri stili */
}

/* Modifica anche il colore del nome utente all'interno del titolo */
#user-fullname {
  color: #004d00; /* stesso colore del resto del titolo */
}

.welcome-box {
  padding: 20px;
}

.welcome-box h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.welcome-box p {
  font-size: 16px;
  margin-bottom: 20px;
}

.section-container {
  margin-top: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  animation: fadeIn 0.5s ease;
}

.section-container h3 {
  margin-bottom: 15px;
  color: #ffcc33;
}

.section-info {
  font-size: 14px;
  color: #e0e0e0;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ==============================================
   3. HEADER E NAVIGAZIONE
   ============================================== */
.header {
  width: 100%;
  background: rgba(0, 100, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  height: 60px;
  z-index: 1000;
}

.logo {
  height: 40px;
}

/* Menu di navigazione */
.menu {
  display: flex;
  align-items: center;
}

.menu a {
  color: white;
  text-decoration: none;
  margin-right: 15px;
  font-size: 16px;
}

.menu button {
  background: #ff4b5c;
  color: white;
  border: none;
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.menu button:hover {
  background: #e03650;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: #006400;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}

.dropdown-toggle:hover {
  background: #008000;
}

.dropdown-icon {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.dropdown.open .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  width: 220px;
  background: rgba(0, 80, 0, 0.95);
  border-radius: 6px;
  padding: 6px 0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  max-height: 80vh;
  overflow-y: auto;
}

.dropdown.open .dropdown-menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 9999 !important;
}

@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
  transition: background 0.15s ease;
  text-align: left;
  margin-right: 0;
}

.dropdown-menu a:hover {
  background-color: #004d00;
}

.dropdown-header {
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
  color: #ffcc33;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px 0;
}

/* Responsive per il menu */
@media screen and (max-width: 768px) {
  .dropdown-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    margin-top: 0;
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* Sidebar menu */
.sidebar-menus {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.menu-box {
  background: rgba(0, 70, 0, 0.7);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  flex: 1;
  min-width: 200px;
}

.menu-box h3 {
  color: #fff;
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.menu-list li {
  margin-bottom: 10px;
}

.menu-list li:last-child {
  margin-bottom: 0;
}

.menu-list a {
  display: flex;
  align-items: center;
  padding: 10px;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.menu-list a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.menu-icon {
  margin-right: 8px;
  font-style: normal;
}

/* ==============================================
   4. FORM E INPUT
   ============================================== */
/* Gruppi di form */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-group input:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-help-text {
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 350px;
  margin: 20px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 100, 0, 0.8);
}

/* Animazione per il modale */
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Responsive per schermi piccoli */
  @media (max-width: 640px) {
    .payment-grid {
      flex-direction: column;
    }
    
    .payment-button-column {
      width: 100%;
      margin-top: 10px;
    }
    
    .payment-submit-btn {
      height: auto;
      padding: 12px;
    }
  }

/* Stile delle etichette */
label {
  font-weight: bold;
  margin-bottom: 5px;
}

/* Stile degli input e dei select */
input,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  transition: border 0.3s ease-in-out;
}

.input-field {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
}

input:focus,
select:focus {
  border-color: #28a745;
  outline: none;
  box-shadow: 0px 0px 5px rgba(40, 167, 69, 0.5);
}

.input-field:focus {
  border-color: #28a745;
  outline: none;
  box-shadow: 0px 0px 5px rgba(40, 167, 69, 0.5);
}

/* Eccezione per i checkbox */
input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  vertical-align: middle;
}

.remember-me {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
}

.remember-me input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

.remember-me label {
  margin-bottom: 0;
  font-size: 14px;
  color: #333;
}

.form-hint {
  font-size: 12px;
  color: #ffcc33;
  margin-top: 5px;
  font-style: italic;
}

.form-info {
  margin-bottom: 8px;
  color: #e0e0e0;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.5;
}

/* Validazione password */
.password-strength {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 5px;
  background: rgba(0, 0, 0, 0.2);
  padding: 5px;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.password-rules {
  font-size: 14px;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 5px;
  margin-top: 5px;
}

.rule {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: red;
  transition: all 0.3s ease-in-out;
}

.rule.valid {
  color: limegreen;
}

#password-match {
  font-size: 12px;
  margin-top: 5px;
  color: red;
}

#password-match.valid {
  color: limegreen;
}

/* File upload */
input[type="file"] {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 4px;
  width: 100%;
  color: white;
}

input[type="file"]::file-selector-button {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
  background: #0069d9;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.switch-label {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  cursor: pointer;
}

.switch-label:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s;
}

.switch-label:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  transition: all 0.3s;
}

input[type="checkbox"]:checked + .switch-label:before {
  background-color: #28a745;
}

input[type="checkbox"]:checked + .switch-label:after {
  transform: translateX(26px);
}

.toggle-text {
  font-size: 14px;
  transition: all 0.3s;
}

/* Stile per switch disabilitati (obbligatori) */
.toggle-switch.disabled .switch-label {
  cursor: not-allowed;
}

.toggle-switch.disabled .switch-label:before {
  background-color: rgba(40, 167, 69, 0.5);
}

.form-navigation {
  display: flex;
  padding: 8px 12px;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
  font-size: 15px;
  text-align: center;
}

.form-group.autocomplete-wrapper {
  position: relative;
}

/* ==============================================
   5. BOTTONI
   ============================================== */
.button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn {
  flex: 1;
  width: 100%;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  padding: 8px 12px;
  font-size: 15px;
}

.btn:hover {
  background: #0056b3;
}

.btn-alt {
  background: #28a745;
}

.btn-alt:hover {
  background: #1e7e34;
}

.btn-primary {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  min-width: 120px;
}

.btn-primary:hover {
  background: #0069d9;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  min-width: 120px;
}

.btn-secondary:hover {
  background: #5a6268;
}

.login-button {
  width: 100%;
  padding: 12px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.login-button:hover {
  background: #218838;
}

.confirm-button {
  background: #28a745;
  color: white;
  padding: 15px 30px;
  font-size: 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  font-weight: bold;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  display: block;
}

.confirm-button:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button {
  background: #ff4b5c;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 15px;
  transition: background 0.3s;
}

button:hover {
  background: #e03650;
}

/* Social login buttons */
.google-btn,
.apple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: white;
  color: #444;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 16px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 10px auto;
  width: 180px;
}

.google-btn:hover {
  background-color: #f5f5f5;
}

.apple-btn {
  background-color: black;
  color: white;
  border: 1px solid black;
}

.apple-btn:hover {
  background-color: #333;
}

.meta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #1877f2;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-family: "Helvetica", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 10px auto;
}

.meta-btn:hover {
  background-color: #166fe5;
}

.google-btn img,
.apple-btn img,
.meta-btn img {
  vertical-align: middle;
}

.btn-activation {
  background: #006400;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

.btn-activation:hover {
  background: #004d00;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-complete {
  background: #ffffff;
  color: #2980b9;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-complete:hover {
  background: #f1f1f1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ==============================================
   6. MODALI E MESSAGGI
   ============================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  background-color: #4f9260;
  margin: 10% auto;
  padding: 0;
  width: 90%;
  max-width: 550px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  border-radius: 8px 8px 0 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.close-btn {
  font-size: 24px;
  font-weight: bold;
  color: #777;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #333;
}

.modal-message-container {
  margin-bottom: 15px;
  width: 100%;
}

.modal-message {
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  text-align: left;
}

.modal-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.modal-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.modal-message.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.modal-message.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.message-container {
  margin-bottom: 20px;
}

.message {
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.message.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Modal per il consenso */
.consenso-modal-content {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.consenso-descrizione {
  text-align: left;
  margin-top: 15px;
  line-height: 1.6;
  color: #333;
}

/* Loading indicator */
.auth-loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
}

.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: white;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid white;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.error-message {
  color: #ff6b6b;
  background: rgba(255, 0, 0, 0.1);
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

/* Tooltip personalizzato */
#custom-tooltip {
  position: absolute;
  background: #dc3545;
  color: white;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#custom-tooltip:after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid #dc3545;
}

/* ==============================================
   7. DASHBOARD
   ============================================== */
.dashboard-container {
  background: rgba(0, 100, 0, 0.8);
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0px 4px 10px rgba(0, 100, 0, 0.8);
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.dashboard-container h1 {
  font-size: 28px;
  text-transform: capitalize;
  margin-bottom: 20px;
  text-align: center;
  color: #ffffff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 15px;
}

.dashboard-container p {
  font-size: 18px;
  margin: 5px 0;
}

.user-info-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  backdrop-filter: blur(5px);
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.user-info-section {
  margin-bottom: 20px;
}

.user-info-section:last-child {
  margin-bottom: 0;
}

.user-info-section h2 {
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

.info-row {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-label {
  font-weight: bold;
  min-width: 150px;
  color: rgba(255, 255, 255, 0.8);
}

.info-value {
  flex: 1;
  font-size: 16px;
  color: #ffffff;
}

/* Stati di iscrizione */
.status-active {
  color: #4caf50;
  font-weight: bold;
  background: rgba(76, 175, 80, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
}

.status-pending {
  color: #ff9800;
  font-weight: bold;
  background: rgba(255, 152, 0, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
}

.status-inactive {
  color: #f44336;
  font-weight: bold;
  background: rgba(244, 67, 54, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
}

.status-error {
  color: #f44336;
  font-style: italic;
}

.status-details {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
  line-height: 1.4;
}

/* Indicazioni visive più specifiche */
.payment-pending {
  color: #f39c12;
  font-weight: bold;
  background: rgba(243, 156, 18, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
}

.verification-pending {
  color: #3498db;
  font-weight: bold;
  background: rgba(52, 152, 219, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Griglia per il layout a tre colonne */
.payment-grid {
  display: flex;
  padding: 20px;
  gap: 15px;
}

.payment-column {
  flex: 1;
  min-width: 0;
}

.payment-button-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 120px;
}

/* Stile del bottone di pagamento */
.payment-submit-btn {
  height: 100%;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  background-color: #007bff;
  border-radius: 5px;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

.payment-submit-btn:hover {
  background-color: #0056b3;
}

/* Stili per il modale di pagamento ore */
.paga-ore-modal {
    max-width: 600px;
    width: 90%;
}


.payment-button-column {
    display: flex;
    height: 100%;
    align-items: center;
}

.payment-submit-btn {
    height: 100%;
    min-height: 80px;
    text-align: center;
    line-height: 1.2;
}

.form-help-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive per mobile */
@media (max-width: 600px) {
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .payment-button-column {
        margin-top: 15px;
    }
    
    .payment-submit-btn {
        width: 100%;
        min-height: 50px;
    }
}
/* Badge per pagato e verificato */
.status-badge {
  display: inline-block;
  margin-right: 10px;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  font-size: 12px;
  white-space: nowrap;
}

.status-badge.pending {
  background-color: #ff9800;
  color: #fff;
}

.status-badge.completed {
  background-color: #4caf50;
  color: #fff;
}

.status-badge.rejected {
  background-color: #f44336;
  color: #fff;
}

.badge-success {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.badge-warning {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

/* Layout nome+cognome con email sotto */
.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.user-email {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.8);
  word-break: break-word;
}

/* Tabella più compatta */
.users-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px; /* Ridotta la larghezza minima */
}

.users-table th {
  text-align: left;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
}

.users-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
}

.upgrade-badge {
  background-color: #9c27b0;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
}

.upgrade-request {
  border-left: 3px solid #9c27b0;
  padding-left: 8px;
  margin-bottom: 5px;
}

.upgrade-button {
  background-color: #9c27b0;
}

.upgrade-button:hover {
  background-color: #7b1fa2;
}

/* Larghezza colonne */
.users-table th:first-child,
.users-table td:first-child {
  width: 35%; /* Colonna nome+email */
}

.users-table th:nth-child(2),
.users-table td:nth-child(2) {
  width: 20%; /* Colonna tipo socio */
}

.users-table th:nth-child(3),
.users-table td:nth-child(3) {
  width: 15%; /* Colonna stato */
}

.users-table th:last-child,
.users-table td:last-child {
  width: 30%; /* Colonna azioni */
}

/* Verification/payment badges */
.verification-badge,
.payment-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.verification-badge.completed,
.payment-badge.completed {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.verification-badge.pending,
.payment-badge.pending {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

@media screen and (max-width: 992px) {
  .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .btn-action {
    padding: 5px;
    font-size: 12px;
  }

  /* Layout compatto per colonne meno importanti */
  .users-table th:nth-child(5),
  .users-table td:nth-child(5) {
    max-width: 80px;
  }
}

@media screen and (max-width: 768px) {
  .users-table {
    font-size: 14px;
  }

  .users-table th,
  .users-table td {
    padding: 6px;
  }
}

/* Avviso di attivazione */
.activation-notice {
  background: rgba(255, 204, 0, 0.2);
  color: #333;
  border: 2px solid #ffcc00;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite;
  text-align: center;
}

.activation-content {
  text-align: center;
}

.activation-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  margin-top: 0;
  color: #ffcc00;
}

.activation-content p {
  margin-bottom: 15px;
  color: #444;
}

/* Stile per avviso di completamento iscrizione */
.completion-notice {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.completion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

/* ==============================================
   8. ATTIVAZIONE ISCRIZIONE
   ============================================== */
.attivazione-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: rgba(0, 100, 0, 0.85);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.attivazione-form {
  width: 100%;
}

.attivazione-form h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.attivazione-container h1 {
  font-size: 22px;
  margin-bottom: 10px;
}

/* Progress bar */
.progress-bar {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  position: relative;
  padding: 0 20px;
}

.progress-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.progress-step {
  position: relative;
  background: rgba(0, 70, 0, 0.8);
  color: #fff;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
  transition: all 0.3s ease;
}

.progress-step.active {
  background: #28a745;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
  transform: scale(1.05);
}

.progress-step.completed {
  background: #007bff;
}

/* Tipo Socio */
.tipo-socio-selection {
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
}

.tipo-socio-options {
  display: flex;
  justify-content: space-around;
  margin-bottom: 25px;
}

.tipo-socio-option {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  margin: 0 10px;
  justify-content: center;
}

.tipo-socio-option:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tipo-socio-option input[type="radio"] {
  margin-right: 10px;
}

.tipo-socio-option label {
  font-weight: bold;
  margin-bottom: 0;
  cursor: pointer;
  font-size: 16px;
}

.socio-details {
  display: none;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 20px;
}

.socio-details.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.socio-details h3 {
  color: #ffcc33;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
  text-align: center;
}

.socio-details ul {
  text-align: left;
  padding-left: 20px;
}

.socio-details li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.socio-details li strong {
  color: #ffcc33;
}

/* Riepilogo */
.riepilogo-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}

.riepilogo-sezione {
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 20px;
}

.riepilogo-sezione h3 {
  color: #ffcc33;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
}

.riepilogo-row {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-start;
}

.riepilogo-label {
  font-weight: bold;
  min-width: 160px;
  color: rgba(255, 255, 255, 0.8);
}

.riepilogo-value {
  color: #ffffff;
  text-align: left;
  flex: 1;
}

.riepilogo-value ul {
  margin: 0;
  padding-left: 20px;
}

.riepilogo-value li {
  margin-bottom: 5px;
}

.payment-info {
  margin-top: 25px;
  background: rgba(255, 204, 51, 0.15);
  padding: 20px;
  border-radius: 6px;
  border-left: 4px solid #ffcc33;
}

.payment-info h3 {
  color: #ffcc33;
  margin-bottom: 15px;
}

.payment-info p {
  margin-bottom: 10px;
  line-height: 1.5;
}

.text-highlight {
  color: #ffcc33;
  font-weight: bold;
}

.highlight {
  background-color: #d4edda;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: bold;
  color: #206430;
}

/* ==============================================
   9. COOKIE E CONSENSI
   ============================================== */
/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 60, 0, 0.85);
  color: white;
  padding: 10px 15px;
  z-index: 9999;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-content {
  display: flex;
  align-items: center;
  flex: 1;
}

.cookie-content p {
  margin: 0;
  margin-right: 15px;
}

.cookie-buttons {
  display: flex;
  gap: 8px;
}

.cookie-btn,
.cookie-btn-alt,
.cookie-btn-settings {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.cookie-settings-content {
  background: white;
  color: #333;
  width: 90%;
  max-width: 600px;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  position: relative;
}

.cookie-settings-content h3 {
  margin-top: 0;
  color: #006400;
  font-size: 18px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.cookie-option {
  margin-bottom: 15px;
  padding: 10px;
  background: #f7f7f7;
  border-radius: 4px;
}

.cookie-option label {
  font-weight: bold;
  margin-left: 8px;
}

.cookie-option p {
  margin-top: 5px;
  margin-left: 25px;
  font-size: 14px;
  color: #666;
}

#save-cookie-settings {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 14px;
}

#save-cookie-settings:hover {
  background: #218838;
}

/* Consensi */
.consensi-container {
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  max-height: 320px;
  overflow-y: auto;
}

.consenso-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px;
  position: relative;
  transition: all 0.3s ease;
  padding: 10px;
  margin-bottom: 7px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.consenso-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.consenso-item.error {
  border: 2px solid #dc3545;
  animation: shake 0.5s linear;
}

.consenso-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  flex: 1;
  margin-right: 15px;
}

.consenso-titolo {
  font-size: 12px;
  margin: 0;
  font-size: 16px;
  color: #fff;
  flex: 1;
}

.info-button {
  background: none;
  border: none;
  cursor: pointer;
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f44336;
  color: white;
  font-weight: bold;
  font-style: italic;
  margin-left: 10px;
  transition: transform 0.2s;
  font-size: 9px;
}

.info-icon:hover {
  transform: scale(1.1);
}

.consenso-options {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  min-width: 60px;
}

.radio-group {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.radio-group input[type="radio"] {
  width: auto;
  margin-right: 8px;
}

.radio-group label {
  margin-bottom: 0;
  font-size: 14px;
}

.obbligatorio-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc3545;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.obbligatorio-tag-line {
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  background-color: #dc3545;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 3px;
  margin-bottom: 5px;
}

/* ==============================================
   10. COMUNI AUTOCOMPLETE
   ============================================== */
.comuni-suggestions {
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 5px 5px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  color: #333;
  text-align: left;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
  background-color: #f5f5f5;
}

.suggestion-item strong {
  font-weight: bold;
}

/* ==============================================
   11. ANIMAZIONI E EFFETTI
   ============================================== */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 177, 66, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 177, 66, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 177, 66, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* ==============================================
   12. UTILITÁ
   ============================================== */
.show {
  display: flex !important;
}

/* ==============================================
   13. MEDIA QUERIES
   ============================================== */
@media screen and (max-width: 768px) {
  .tipo-socio-options {
    flex-direction: column;
    gap: 10px;
  }

  .tipo-socio-option {
    margin: 5px 0;
  }

  .riepilogo-row {
    flex-direction: column;
  }

  .riepilogo-label {
    margin-bottom: 5px;
  }

  .form-navigation {
    flex-direction: column;
    gap: 10px;
  }

  .dropdown-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    margin-top: 0;
    max-height: 80vh;
    overflow-y: auto;
  }

  .attivazione-container {
    padding: 20px;
  }

  .progress-bar {
    flex-direction: row;
    padding: 0 10px;
  }

  .progress-step {
    font-size: 12px;
    padding: 6px 10px;
  }

  .consenso-options {
    flex-direction: column;
    gap: 5px;
  }
}

@media screen and (max-width: 600px) {
  .form-container {
    width: 95%;
    padding: 30px;
  }

  input,
  select {
    font-size: 14px;
    padding: 10px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 15px;
  }

  .main-content {
    margin-top: 80px;
    padding: 20px;
  }

  /* Adattamenti per la dashboard su dispositivi mobili */
  .dashboard-container {
    width: 95%;
    padding: 20px;
  }

  .dashboard-container h1 {
    font-size: 22px;
  }

  .user-info-section {
    min-width: 100%;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
  }

  .info-label {
    margin-bottom: 5px;
  }

  .activation-notice {
    padding: 15px;
  }

  .activation-content h3 {
    font-size: 18px;
  }

  /* Stile per dispositivi mobili - cookie */
  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-btn,
  .cookie-btn-alt,
  .cookie-btn-settings {
    width: 100%;
    margin-bottom: 5px;
  }
}

/* ==============================================
   VERIFICA UTENTI
   ============================================== */

/* Container principale admin */
.admin-container {
  background: rgba(0, 100, 0, 0.8);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 100, 0, 0.8);
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.admin-container h1 {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
  color: #ffffff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 15px;
}

/* Filtri */
.filters-section {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.filters-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #ffcc33;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.filter-controls label {
  display: flex;
  align-items: center;
  font-weight: normal;
  margin-bottom: 0;
  cursor: pointer;
}

.filter-controls input[type="checkbox"] {
  margin-right: 8px;
}

.filter-select {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-select select {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: white;
  font-size: 14px;
}

/* Contatore utenti */
.counter-badge {
  background: rgba(255, 204, 51, 0.2);
  color: #ffcc33;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 15px;
}

.counter-badge span {
  font-size: 18px;
}

/* Tabella utenti */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.users-table {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.users-table th {
  background-color: rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
}

.users-table td {
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.users-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.users-table tr:last-child td {
  border-bottom: none;
}

/* Celle con messaggio di caricamento o errore */
.loading-message,
.error-message {
  text-align: center;
  padding: 20px;
  font-style: italic;
}

/* Messaggio di nessun dato */
.no-data-message {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-top: 15px;
}

.no-data-message p {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

/* Pulsanti di azione */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.btn-action {
  padding: 6px 10px;
  font-size: 13px;
  margin: 2px;
  white-space: nowrap;
  border: none;
  border-radius: 4px;
  background-color: #28a745;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-action:hover {
  background-color: #218838;
}

.btn-action.view-certificate {
  background-color: #17a2b8;
}

.btn-action.view-certificate:hover {
  background-color: #138496;
}

.btn-action.verify-user {
  background: #28a745;
}

.btn-action.confirm-payment {
  background-color: #ffc107;
  color: #212529;
}

.btn-action.confirm-payment:hover {
  background-color: #e0a800;
}

.btn-action.activate-user {
  background-color: #007bff;
}

.btn-action.activate-user:hover {
  background-color: #0069d9;
}

.btn-action.disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-action.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Certificato medico modal */
.large-modal {
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
}

/* Stile per il modale di visualizzazione certificato */
#certificato-modal .modal-content {
  padding: 20px;
}

.certificate-image-container,
.certificate-pdf-container {
  max-height: 400px;
  overflow-y: auto;
  background: #f5f5f5;
  border-radius: 4px;
  text-align: center;
  margin-top: 15px;
}

#certificato-container {
  margin-top: 15px;
}

.certificate-image {
  max-width: 100%;
  height: auto;
}

.certificate-pdf {
  width: 100%;
  height: 400px;
  border: none;
}

.certificate-details {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}

.certificate-details {
  margin-top: 15px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
}

.certificate-other-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 15px;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

/* Status badges */
.badge-success {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.badge-warning {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.badge-danger {
  background-color: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

/* Responsività */
@media screen and (max-width: 768px) {
  .filter-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
    text-align: center;
  }

  .users-table {
    font-size: 14px;
  }

  .users-table th,
  .users-table td {
    padding: 8px;
  }

  .large-modal {
    width: 95%;
  }
}

/* === STILI PER RICERCA ISCRITTI === */

/* Contenitore amministrativo */
.admin-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 100, 0, 0.85);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.section-info {
  margin-bottom: 20px;
  font-style: italic;
  opacity: 0.9;
}

/* Sezione di ricerca */
.search-section {
  margin-bottom: 30px;
}

.search-columns {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.search-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-column:first-child {
  flex: 1;
  max-width: 70%;
}

.search-box {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}

.search-btn {
  width: 100%;
  max-width: 200px;
  align-self: flex-start;
}

.search-input-container {
  position: relative;
  width: 100%;
  margin-bottom: 15px;
}

.search-input {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  border: 2px solid #28a745;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #218838;
  box-shadow: 0 3px 8px rgba(40, 167, 69, 0.2);
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow-y: auto;
  display: none;
}

.suggestion-item {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s ease;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
  background-color: #f0f9f0;
}

.suggestion-info {
  display: block;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* Bottoni con icona */
.icon-camera {
  font-size: 18px;
}

/* QR Reader */
.qr-reader-container {
  margin-top: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  position: relative;
}

.qr-column {
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.qr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qr-reader {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 20px;
  height: 400px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

#close-qr-reader {
  margin: 0 auto;
  display: block;
}

/* Responsive per schermi piccoli */
@media (max-width: 768px) {
  .search-columns {
    flex-direction: column;
  }

  .search-column {
    width: 100%;
    margin-bottom: 10px;
  }

  .search-input {
    font-size: 16px; /* Evita lo zoom automatico su iPhone */
  }

  .qr-column {
    text-align: center;
  }

  .suggestion-item {
    padding: 10px;
  }
}

/* Lista risultati */
.results-container {
  margin-top: 30px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.result-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.result-info {
  text-align: left;
}

.result-info h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.result-email {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.badge.vip {
  background-color: #ffeeba;
  color: #856404;
}

.badge.standard {
  background-color: #d4edda;
  color: #155724;
}

.btn-view-details {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-view-details:hover {
  background: #0056b3;
}

/* Nessun risultato */
.no-results {
  padding: 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Dettagli membro */
.member-details-container {
  margin-top: 30px;
  animation: fadeIn 0.3s ease-in-out;
  background-color: white; /* Sfondo bianco per tutto il contenitore */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.member-card:hover {
  box-shadow: 0 6px 16px rgba(0, 100, 0, 0.15);
}

.member-header {
  background-color: #f8f9fa;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
}

.member-name-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.member-name-container h3 {
  margin: 0;
  margin-right: 10px;
  font-size: 22px;
  color: #333;
}

.member-hours {
  display: flex;
  gap: 15px;
}

.hours-badge {
  padding: 10px 15px;
  border-radius: 5px;
  text-align: center;
  min-width: 100px;
}

.hours-badge.available {
  background-color: #d4edda;
  color: #155724;
}

.hours-badge.paid {
  background-color: #cce5ff;
  color: #004085;
}

.hours-badge span:first-child {
  font-size: 22px;
  font-weight: bold;
  display: block;
}

.hours-label {
  font-size: 12px;
  opacity: 0.8;
}

.hours-badge.available {
  background: #28a745;
}

.hours-badge.paid {
  background: #17a2b8;
}

.member-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  padding: 20px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-weight: bold;
  color: #000000;
  margin-bottom: 5px;
  font-size: 14px;
}

.detail-value {
  color: #333;
}

.action-buttons {
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.user-actions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
  justify-content: center;
}

.action-button-container {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

/* Modali */
.form-paga-ore,
.form-incrementa-ore {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-help-text {
  margin: 5px 0 0;
  font-size: 14px;
  color: #6c757d;
}

.form-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}
/* Rende la dashboard responsiva */
@media screen and (max-width: 768px) {
  .user-info-card {
      padding: 15px;
  }
  
  .info-row {
      flex-direction: column;
      align-items: flex-start;
  }
  
  .info-label {
      margin-bottom: 5px;
  }
  
  .user-actions-container {
      flex-direction: column;
  }
  
  .action-button-container {
      max-width: none;
  }
}

.tournament-access {
  margin-top: 15px;
  text-align: center;
}

.tournament-link {
  color: #ffcc33;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 8px 15px;
  background: rgba(0, 70, 0, 0.6);
  border-radius: in20px;
}

.tournament-link:hover {
  color: white;
  background: rgba(0, 100, 0, 0.8);
  transform: scale(1.05);
}