@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap");

body {
  background: #f8f6f2;
  color: #2d2d2d;
  font-family: "Inter", Arial, sans-serif;
  margin: 0;
  padding: 0;
}
h1 {
  color: #ff5757;
  text-align: center;
  margin-top: 30px;
}
#prenotazioni-table,
#prenotazioni-table thead,
#prenotazioni-table tbody,
#prenotazioni-table tr,
#prenotazioni-table th,
#prenotazioni-table td {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

#prenotazioni-table thead {
  display: none;
}

#prenotazioni-table tr {
  margin-bottom: 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(255, 87, 87, 0.08);
  padding: 10px 8px;
  border: 1px solid #ffd6d6;
}

#prenotazioni-table td {
  padding: 8px 4px;
  border: none;
  position: relative;
  text-align: left;
}

#prenotazioni-table td::before {
  content: attr(data-label);
  font-weight: bold;
  color: #ff5757;
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.annulla-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 16px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 6px;
  margin-top: 8px;
  color: #ff5757;
  border: none;
  font-weight: bold;
  transition: background 0.2s;
  cursor: pointer;
}

.stato-inattesa {
  color: #2d2d2d;
  font-weight: bold;
}

.stato-annullata {
  color: red;
  font-weight: bold;
}

.stato-preautorizzato {
  color: #ff9800;
  font-weight: bold;
}

.stato-pagato {
  color: #4caf50;
  font-weight: bold;
}

.stato-rifiutato {
  color: red;
  font-weight: bold;
}

.modal-btn {
  padding: 8px 20px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  margin: 0 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.modal-btn-ok {
  background: #ff5757;
  color: #fff;
}

.modal-btn-ok:hover {
  background: #e03e3e;
}

.modal-btn-cancel {
  background: #f2f2f2;
  color: #2d2d2d;
  border: 1px solid #ddd;
}

.modal-btn-cancel:hover {
  background: #e0e0e0;
}

.chat-btn-blu {
  background-color: #4fc3f7;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.chat-btn-blu:hover {
  background-color: #039be5;
}

.segnala-btn {
  background: #fff3e0;
  color: #ff9800;
  border: 1px solid #ff9800;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  margin-left: 8px;
  transition: background 0.2s, color 0.2s;
}
.segnala-btn:hover {
  background: #ff9800;
  color: #fff;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.95em;
  font-weight: bold;
  color: #fff;
}
.badge-warning {
  background: #ff9800;
}
.badge-success {
  background: #4caf50;
}

.badge-danger {
  background: #f44336;
}

@media (max-width: 600px) {
  #prenotazioni-table,
  #prenotazioni-table thead,
  #prenotazioni-table tbody,
  #prenotazioni-table tr,
  #prenotazioni-table th,
  #prenotazioni-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  #prenotazioni-table thead {
    display: none;
  }

  #prenotazioni-table tr {
    margin-bottom: 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 87, 87, 0.08);
    padding: 10px 8px;
    border: 1px solid #ffd6d6;
  }

  #prenotazioni-table td {
    padding: 8px 4px;
    border: none;
    position: relative;
    text-align: left;
  }

  #prenotazioni-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #ff5757;
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
  }

  .annulla-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    font-size: 16px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 6px;
    margin-top: 8px;
    color: #ff5757;
  }
}
