/* ═══════════════════════════════════════
   HERMES — Toast
   ═══════════════════════════════════════ */
#hermes-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.hermes-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  max-width: 400px;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: hermes-toast-slide-in 0.3s ease-out;
}

.hermes-toast-fade-out {
  animation: hermes-toast-fade-out 0.3s ease-in forwards;
}

.hermes-toast-sucesso { background-color: #198754; }
.hermes-toast-erro    { background-color: #dc3545; }
.hermes-toast-aviso   { background-color: #ffc107; color: #333; }
.hermes-toast-info    { background-color: #0dcaf0; color: #333; }

.hermes-toast-icon { font-size: 1.25rem; flex-shrink: 0; }
.hermes-toast-text { flex: 1; }

.hermes-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.4);
  width: 100%;
  transform-origin: left;
  animation: hermes-toast-shrink linear forwards;
}

.hermes-toast-aviso .hermes-toast-progress,
.hermes-toast-info .hermes-toast-progress {
  background-color: rgba(0, 0, 0, 0.2);
}

@keyframes hermes-toast-slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes hermes-toast-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes hermes-toast-shrink {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ═══════════════════════════════════════
   HERMES — Confirm Modal
   ═══════════════════════════════════════ */
.hermes-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  animation: hermes-confirm-overlay-in 0.2s ease-out;
}
.hermes-confirm-fade-out {
  animation: hermes-confirm-overlay-out 0.2s ease-in forwards;
}
.hermes-confirm-dialog {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  margin: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: hermes-confirm-dialog-in 0.2s ease-out;
  overflow: hidden;
}
.hermes-confirm-dialog-fade-out {
  animation: hermes-confirm-dialog-out 0.2s ease-in forwards;
}
.hermes-confirm-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 0.75rem;
}
.hermes-confirm-icon { font-size: 1.5rem; color: #dc3545; flex-shrink: 0; }
.hermes-confirm-title { margin: 0; font-size: 1.1rem; font-weight: 600; color: #212529; }
.hermes-confirm-body {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.925rem;
  color: #6c757d;
  line-height: 1.5;
}
.hermes-confirm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
}
.hermes-confirm-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
}
.hermes-confirm-btn:hover { opacity: 0.85; }
.hermes-confirm-btn:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; }
.hermes-confirm-btn-cancelar { background-color: #e9ecef; color: #495057; }
.hermes-confirm-btn-confirmar { background-color: #dc3545; color: #fff; }

@keyframes hermes-confirm-overlay-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes hermes-confirm-overlay-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes hermes-confirm-dialog-in {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
@keyframes hermes-confirm-dialog-out {
  from { transform: scale(1);   opacity: 1; }
  to   { transform: scale(0.9); opacity: 0; }
}
