/* RESET DI BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* CONTAINER PRINCIPALE */
.riparatori-crm-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* HEADER */
.header-bar {
  width: 100%;
  padding: 20px;
  background-color: #E59E08;
  text-align: center;
}

.header-bar .custom-logo {
  max-width: 150px;
  height: auto;
}

/* SIDEBAR */
.riparatori-sidebar {
  flex: 1 1 250px;
  background-color: #222;
  color: #fff;
  padding: 20px;
}

.riparatori-sidebar h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.riparatori-sidebar a {
  display: block;
  margin-bottom: 10px;
  padding: 10px 15px;
  text-decoration: none;
  color: #f4f4f4;
  background-color: #333;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.riparatori-sidebar a:hover {
  background-color: #444;
}

/* AREA PRINCIPALE */
.riparatori-main {
  flex: 3 1 auto;
  padding: 20px;
}

.riparatori-main h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #E59E08;
}

.riparatori-main table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.riparatori-main table thead {
  background-color: #E59E08;
  color: #fff;
}

.riparatori-main table th,
.riparatori-main table td {
  text-align: left;
  padding: 12px 10px;
  border: 1px solid #ddd;
}

.riparatori-main table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.riparatori-main table tr:hover {
  background-color: #f1f1f1;
}

/* BOTTONI */
.button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.button-primary {
  background-color: #E59E08;
  color: #fff;
  border: none;
}

.button-primary:hover {
  background-color: #cc8a07;
}

.button-secondary {
  background-color: #ddd;
  color: #333;
}

.button-secondary:hover {
  background-color: #bbb;
}

.button-view {
  background-color: #28a745;
  color: #fff;
}

.button-view:hover {
  background-color: #218838;
}

.not-allowed {
  background-color: #ccc;
  color: #fff;
  cursor: not-allowed;
}

/* MODALE */
#lead-details-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  z-index: 1000;
}

#lead-details-modal .modal-content {
  padding: 20px;
  text-align: center;
}

#lead-details-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

#lead-details-modal #close-modal {
  margin-top: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .riparatori-crm-container {
    flex-direction: column;
  }

  .riparatori-sidebar {
    margin-bottom: 20px;
  }

  .riparatori-main table th,
  .riparatori-main table td {
    font-size: 0.9rem;
  }
}

/* STILE TASTO ESITO (GIALLO CON BORDO NERO) */
.button-esito {
  background-color: #E59E08; /* Giallo */
  color: #fff; /* Testo nero */
  border: 2px solid #000; /* Bordo nero */
  cursor: pointer;
  padding: 10px 15px; /* Stessa dimensione di "Dettagli" */
  border-radius: 6px;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-left: 20px; /* Spazio tra i due bottoni */
}

.button-esito:hover {
  background-color: #cc8a07; /* Giallo più scuro */
  transform: scale(1.05); /* Leggero ingrandimento al passaggio del mouse */
}


/* STILE POPUP ESITO (STESSO DI DETTAGLI, DIMENSIONE MIGLIORATA) */
.modal-outcome {
    display: flex; /* Assicura che sia visibile */
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

/* CONTENUTO DEL POPUP - DIMENSIONE UGUALE A DETTAGLI */
.modal-outcome .modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px; /* Aumentata la larghezza */
    width: 90%; /* Assicura un layout reattivo */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}


/* Bottone di chiusura del popup Esito */
.modal-outcome #close-outcome {
    margin-top: 10px;
    padding: 10px;
    background-color: #E59E08;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-outcome #close-outcome:hover {
    background-color: #cc8a07;
}

/* STILE BOTTONE SALVA (VERDE UGUALE A CHIUDI) */
.modal-outcome #save-outcome {
    padding: 10px 15px;
    background-color: #28a745; /* Verde */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.modal-outcome #save-outcome:hover {
    background-color: #218838; /* Verde scuro */
}

/* STILE BASE DELLE ICONE FEEDBACK */
.feedback-options {
    display: flex;
    justify-content: center;
    gap: 15px; /* Distanza tra le icone */
    margin-top: 10px;
}

.feedback {
    font-size: 2rem; /* Dimensione più grande */
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* EFFETTO HOVER */
.feedback:hover {
    transform: scale(1.3); /* Ingrandisce leggermente l'emoji */
    filter: brightness(1.2); /* Aumenta la luminosità */
}

/* STILE ATTIVO QUANDO VIENE SELEZIONATO */
.feedback.selected {
    transform: scale(1.5); /* Ingrandisce l'emoji selezionata */
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.3)); /* Aggiunge un'ombra */
}

/* 🔹 STILE POPUP CONFERMA ACCETTAZIONE */
.modal-confirmation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-confirmation .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.modal-buttons a,
.modal-buttons button {
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}

.modal-buttons .button-primary {
    background: #28a745;
    color: white;
    border-radius: 5px;
    font-size: 1rem;
}

.modal-buttons .button-primary:hover {
    background: #218838;
}

.modal-buttons .button-secondary {
    background: #dc3545;
    color: white;
    border-radius: 5px;
    font-size: 1rem;
}

.modal-buttons .button-secondary:hover {
    background: #c82333;
}

/* 🔹 STILE POPUP ESITO */
.modal-outcome {
    display: flex !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  
/* ✅ STILE PER IL POPUP DI CONFERMA */
.success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 128, 0, 0.9); /* Verde trasparente */
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
    z-index: 10000;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -55%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}
	
.button-esito.esito-inviato {
    background-color: black !important;
    color: white !important;
    cursor: not-allowed;
    opacity: 0.7;
}
	
	
