/* Premium dialog styling for nnax ReadMore Classic Editor Modal */

.nnax-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  width: 90%;
  max-width: 600px;
  background: #ffffff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease, display 0.2s ease allow-discrete;
}

.nnax-dialog[open] {
  opacity: 1;
  transform: scale(1);
}

@starting-style {
  .nnax-dialog[open] {
    opacity: 0;
    transform: scale(0.95);
  }
}

.nnax-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.2s ease, display 0.2s ease allow-discrete;
}

.nnax-dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .nnax-dialog[open]::backdrop {
    opacity: 0;
  }
}

.nnax-dialog__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.nnax-dialog__header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
}

.nnax-dialog__close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s ease;
}

.nnax-dialog__close:hover {
  color: #0f172a;
}

.nnax-dialog__body {
  padding: 24px;
}

.nnax-dialog__body label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: #334155;
  margin-bottom: 8px;
}

.nnax-dialog__body textarea {
  width: 100%;
  min-height: 180px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nnax-dialog__body textarea:focus {
  outline: none;
  border-color: #00356a;
  box-shadow: 0 0 0 3px rgba(0, 53, 106, 0.15);
}

.nnax-dialog__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.nnax-dialog .nnax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  line-height: 1.5;
  text-decoration: none;
}

.nnax-dialog .nnax-btn--primary {
  background: #00356a;
  color: #ffffff;
}

.nnax-dialog .nnax-btn--primary:hover {
  background: #002447;
  color: #ffffff;
}

.nnax-dialog .nnax-btn--primary:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

.nnax-dialog .nnax-btn--secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.nnax-dialog .nnax-btn--secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}
