/**
 * ModalComponent - Estilos del modal propio
 * Reemplazo de Syncfusion Dialog (ej.popups.Dialog)
 * Cero dependencias externas
 */

/* Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Contenedor del modal */
.modal-container {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-visible .modal-container {
  transform: scale(1);
  opacity: 1;
}

/* Contenido */
.modal-content {
  width: 100%;
  height: 100%;
}

/* Compatibilidad con clases Syncfusion existentes */
.e-dlg-center-center {
  position: fixed !important;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-container {
    width: 95% !important;
    height: auto !important;
    max-height: 90vh;
    margin: 10px;
  }
}
