/* ==========================================================
   Shared Modal Styles
   Confirmation dialogs and small modals used across pages
   ========================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  width: 90%;
  max-width: 500px;
  animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.modal-content {
  background: var(--xilo-card-bg, #FFFFFF);
  border-radius: var(--xilo-radius-lg, 1.5rem);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--xilo-border, #E4E7E7);
}

.modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-body p {
  margin: 0 0 0.75rem 0;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-body .text-muted {
  font-size: 0.85rem;
  opacity: 0.7;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--xilo-border, #E4E7E7);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

@media (max-width: 767px) {
  .modal-dialog {
    width: 95%;
  }
}
