/* src/styles.css */
/* Un peu d air autour des cartes, fond leger, log lisible */

body {
  background: #f7f8fa;
}

.card {
  border-radius: 0.75rem;
}

pre#log {
  max-height: 260px;
  overflow: auto;
  background: #111;
  color: #ddd;
  padding: 12px;
  border-radius: 8px;
}


.toast-mini {
  min-width: 260px;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.toast-mini.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-mini.hide {
  opacity: 0;
  transform: translateY(20px);
}

/* -------------------------
   Alerte centrale RFID
------------------------- */

.alert-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2000;
}

.alert-overlay.show {
  animation: alertOverlayIn 0.15s ease-out;
}

.alert-dialog {
  min-width: 320px;
  max-width: 480px;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.35);
  transform: scale(0.96);
  animation: alertDialogIn 0.15s ease-out forwards;
}

/* variantes de couleur */
.alert-dialog.success {
  background: #d1e7dd;
  color: #0f5132;
  border-left: 6px solid #0f5132;
}

.alert-dialog.danger {
  background: #f8d7da;
  color: #842029;
  border-left: 6px solid #842029;
}

.alert-title {
  font-size: 1.1rem;
}

.alert-message {
  font-size: 0.95rem;
}

/* petites animations */
@keyframes alertOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes alertDialogIn {
  from { transform: scale(0.9) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
