/*!
 * dx-quill-extras.css — styles for IBC.DxQuillWrapper additions:
 * image upload placeholder spinner, HTML edit dialog and snippet button.
 */

/* ---- image upload placeholder ---- */
.ql-editor img.dx-quill-uploading {
  min-width: 48px;
  min-height: 48px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.06);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%23888' stroke-width='3' stroke-dasharray='56' stroke-dashoffset='20' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 16 16' to='360 16 16' dur='0.9s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---- HTML edit dialog ---- */
.dx-quill-htmledit-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.dx-quill-htmledit-dialog {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(720px, 92vw);
  height: min(560px, 86vh);
  padding: 16px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dx-quill-htmledit-title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: bold;
  color: #333;
}

.dx-quill-htmledit-textarea {
  flex: 1;
  resize: none;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre;
  overflow: auto;
}

.dx-quill-htmledit-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dx-quill-htmledit-buttons button {
  padding: 6px 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  font-size: 13px;
  cursor: pointer;
}

.dx-quill-htmledit-buttons button.dx-quill-htmledit-ok {
  background: #06c;
  border-color: #06c;
  color: #fff;
}

/* ---- snippet save button (ported from IBC.QuillWrapper) ---- */
.ql-toolbar button.ql-snippet-save {
  width: auto;
  padding: 0 6px;
  white-space: nowrap;
  font-size: 12px;
}
