/* /app_pro/admin/css/cm_ui_modals.css */
/* Base styles for CMUI modals in PRO */

body.cm-modal-open {
  overflow: hidden;
}

/* Backdrop */

.cm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal box */

.cm-modal {
  background: #f7fbff; /* very light blue for readability */
  color: #1f2933;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  max-width: 520px;
  width: 100%;
  margin: 0 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 80, 179, 0.18);
}

/* Size variants */

.cm-modal-sm {
  max-width: 420px;
}

.cm-modal-lg {
  max-width: 720px;
}

/* Header */

.cm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0050b3, #009fe3); /* CM blue gradient */
  color: #ffffff;
}

.cm-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.cm-modal-close {
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
}

.cm-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Body */

.cm-modal-body {
  padding: 16px 18px 12px 18px;
}

.cm-modal-message {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cm-modal-input-wrap {
  margin-top: 10px;
}

.cm-modal-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #c4d3e3;
  font-size: 0.95rem;
  box-sizing: border-box;
  outline: none;
  background: #ffffff;
}

.cm-modal-input:focus {
  border-color: #009fe3;
  box-shadow: 0 0 0 1px rgba(0, 159, 227, 0.2);
}

/* Footer / buttons */

.cm-modal-footer {
  padding: 10px 16px 14px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: rgba(0, 80, 179, 0.05);
}

/* Buttons */

.cm-btn {
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 6px 14px;
  cursor: pointer;
  background: #e5edf7;
  color: #1f2933;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.cm-btn:hover {
  background: #d6e4f5;
}

.cm-btn:active {
  transform: translateY(1px);
}

/* Primary */

.cm-btn-primary {
  background: #009fe3;
  color: #ffffff;
  border-color: #0082b8;
}

.cm-btn-primary:hover {
  background: #008fd0;
}

/* Secondary (explicit) */

.cm-btn-secondary {
  background: #e5edf7;
  color: #1f2933;
  border-color: rgba(31, 41, 51, 0.12);
}

/* Danger */

.cm-btn-danger {
  background: #e02424;
  border-color: #b91c1c;
  color: #ffffff;
}

.cm-btn-danger:hover {
  background: #c81e1e;
}

/* Small screen adjustments */

@media (max-width: 480px) {
  .cm-modal {
    margin: 0 10px;
    max-width: 100%;
  }

  .cm-modal-header,
  .cm-modal-body,
  .cm-modal-footer {
    padding-left: 12px;
    padding-right: 12px;
  }
} 
