/* Toast & Live Alert Notifications - ISO-Web-Clinic Light Theme */

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 48px);
}

.toast-message {
  pointer-events: auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.toast-message.toast-leaving {
  animation: slideOutRight 0.25s ease forwards;
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 2px;
}

.toast-desc {
  font-size: 12.5px;
  color: #64748B;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.toast-close:hover {
  color: #0F172A;
}

.toast-success {
  border-left: 4px solid #10B981;
}

.toast-info {
  border-left: 4px solid #0073E6;
}

.toast-warning {
  border-left: 4px solid #F59E0B;
}

.toast-error {
  border-left: 4px solid #EF4444;
}

.toast-capture {
  border-left: 4px solid #6366F1;
}

/* Urgent Alert Modal */
.urgent-alert-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.urgent-alert-dialog {
  background: #FFFFFF;
  border: 2px solid #EF4444;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.25);
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.urgent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #FEE2E2;
}

.urgent-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF2F2;
  color: #DC2626;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #FECACA;
}

.urgent-title {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
}

.urgent-body {
  margin-bottom: 20px;
}

.urgent-patient-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F8FAFC;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  margin-bottom: 12px;
}

.urgent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
