/**
 * Modal & Toast Styles
 * Overlay, modal card, header/body/footer, and toast notifications.
 */

/* =========================================================================
 * MODAL OVERLAY
 * ========================================================================= */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 46, 82, .4);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

/* =========================================================================
 * MODAL CARD
 * ========================================================================= */

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: .95rem;
  font-weight: 700;
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mm-lichtgrau);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.modal-close:hover {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.modal-close svg {
  width: 13px;
  height: 13px;
}

.modal-body {
  padding: 18px 20px;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

/* =========================================================================
 * TOAST NOTIFICATION
 * ========================================================================= */

.toast {
  position: fixed;
  bottom: 18px;
  right: 18px;
  padding: 11px 18px;
  background: var(--mm-navy);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-weight: 600;
  font-size: .78rem;
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 300;
  transform: translateY(80px);
  opacity: 0;
  transition: all .35s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
