/**
 * Shared Modal Styles
 * Used by both main site (styles.css) and admin panel (admin.css)
 */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  backdrop-filter: blur(2px);
}

.modal-backdrop--dark {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-backdrop--visible {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop--padded {
  padding: 16px;
}

.modal-backdrop--top {
  z-index: 10001;
}

/* ============================================
   Confirm Modal
   ============================================ */

.confirm-modal {
  z-index: 10002;
}

.confirm-modal__content {
  background: white;
  border-radius: 16px;
  padding: 24px;
  width: calc(100% - 32px);
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: confirmSlideIn 0.2s ease-out;
}

@keyframes confirmSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.confirm-modal__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: #f5f5f4;
}

.confirm-modal__icon svg {
  width: 24px;
  height: 24px;
  stroke: #263a4d;
}

.confirm-modal__icon--danger {
  background: #fee2e2;
}

.confirm-modal__icon--danger svg {
  stroke: #dc2626;
}

.confirm-modal__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #263a4d;
  margin: 0 0 8px;
}

.confirm-modal__message {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0 0 24px;
  line-height: 1.5;
}

.confirm-modal__actions {
  display: flex;
  gap: 12px;
}

.confirm-modal__btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.confirm-modal__btn--cancel {
  background: #f5f5f4;
  color: #263a4d;
}

.confirm-modal__btn--cancel:hover {
  background: #e7e5e4;
}

.confirm-modal__btn--danger {
  background: #dc2626;
  color: white;
}

.confirm-modal__btn--danger:hover {
  background: #b91c1c;
}

.confirm-modal__btn--confirm {
  background: #1a5a4a;
  color: white;
}

.confirm-modal__btn--confirm:hover {
  background: #134439;
}

.confirm-modal__btn:focus-visible {
  outline: 2px solid #1a5a4a;
  outline-offset: 2px;
}
