/* Fluent UI-inspired Modal System for WP-Admin */

/* Modal overlay */
.fluentui-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(50, 49, 48, 0.4) !important; /* Fluent UI neutral dark with opacity */
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: opacity 0.2s !important;
}

/* Modal container */
.fluentui-modal {
  background: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 0 0 1px #e1dfdd !important;
  padding: 32px 24px 24px 24px !important;
  min-width: 340px !important;
  max-width: 90vw !important;
  max-height: 90vh !important;
  color: #323130 !important;
  font-family: 'Inter', 'Segoe UI', 'Arial', sans-serif !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  overflow: auto !important;
}

/* Modal header */
.fluentui-modal-header {
  font-size: 20px !important;
  font-weight: 600 !important;
  margin-bottom: 16px !important;
  color: #323130 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Modal close button */
.fluentui-modal-close {
  background: none !important;
  border: none !important;
  font-size: 18px !important;
  color: #605e5c !important;
  cursor: pointer !important;
  padding: 0 4px !important;
  transition: color 0.2s !important;
  border-radius: 4px !important;
}
.fluentui-modal-close:hover {
  color: #0078d4 !important;
  background: #f3f2f1 !important;
}

/* Modal body */
.fluentui-modal-body {
  font-size: 14px !important;
  color: #323130 !important;
  margin-bottom: 16px !important;
}

/* Modal footer */
.fluentui-modal-footer {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

/* Example for modal action buttons */
.fluentui-modal-footer .button,
.fluentui-modal-footer .button-primary {
  min-width: 80px !important;
}

/* Responsive for small screens */
@media (max-width: 500px) {
  .fluentui-modal {
    min-width: 90vw !important;
    padding: 16px 8px !important;
  }
  .fluentui-modal-header {
    font-size: 16px !important;
  }
}