/* Traven Editor Toolbar Stylesheet */

/* Generic Toolbar Button Styles */
.toolbar-btn {
  background: white;
  border: 1px solid var(--border-color, #e2e8f0);
  padding: 2px 4px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Atkinson Hyperlegible Next', sans-serif;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--text-secondary, #475569);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

button.toolbar-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
  flex-shrink: 0;
}

.toolbar-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.toolbar-btn svg rect:not([stroke]) {
  stroke: none;
}

.toolbar-btn:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text-primary, #0f172a);
  transform: translateY(-1px);
}

.toolbar-btn:active {
  transform: translateY(0);
}

/* Form Demo Page (index2.php) Toolbar */
.traven-toolbar-container {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.toolbar-separator {
  width: 1px;
  height: 20px;
  background-color: var(--border-color, #e2e8f0);
  margin: 0 4px;
  flex-shrink: 0;
}

.form-demo .toolbar-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 6px;
  padding: 2px 4px;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: none;
}

.form-demo button.toolbar-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  justify-content: center;
  flex-shrink: 0;
}

.form-demo .toolbar-btn:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.form-demo .toolbar-btn svg {
  width: 18px;
  height: 18px;
}

/* Heading Dropdown Styles */
.toolbar-dropdown {
  position: relative;
  display: inline-flex;
}

/* Wider trigger button for heading with caret */
button.btn-heading,
button.btn-blockquote {
  width: auto;
  padding: 0 4px;
  gap: 4px;
}

.traven-bubble-menu button.btn-heading {
  width: auto !important;
  padding: 0 6px !important;
}

.form-demo button.btn-heading,
.form-demo button.btn-blockquote {
  width: auto;
  padding: 0 4px;
  gap: 4px;
}

.dropdown-caret {
  width: 8px !important;
  height: 8px !important;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.toolbar-dropdown.is-open .dropdown-caret {
  transform: rotate(180deg);
}

/* Dropdown Menu Panel */
.toolbar-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  display: none;
  flex-direction: row;
  gap: 4px;
  background-color: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 4px;
  margin-top: 4px;
}

.toolbar-dropdown.is-open .toolbar-dropdown-menu {
  display: flex;
}

/* Dropdown Items */
.toolbar-dropdown-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-secondary, #475569);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.form-demo .toolbar-dropdown-item {
  width: 28px;
  height: 28px;
}

.toolbar-dropdown-item svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
}

.toolbar-dropdown-item svg rect:not([stroke]) {
  stroke: none;
}

.form-demo .toolbar-dropdown-item svg {
  width: 13px;
  height: 13px;
}

.toolbar-dropdown-item:hover {
  background-color: #f8fafc;
  color: var(--text-primary, #0f172a);
}

/* Skin-specific adaptations */
.skin-dark .toolbar-dropdown-menu {
  background-color: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.skin-dark .toolbar-dropdown-item {
  color: #94a3b8;
}

.skin-dark .toolbar-dropdown-item:hover {
  background-color: #334155;
  color: #f8fafc;
}

.skin-colorful .toolbar-dropdown-menu {
  border-color: #e2e8f0;
}

/* Fullscreen Mode */
.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  background: var(--bg-primary, #ffffff);
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.is-fullscreen .editor-mount,
.is-fullscreen .cm-editor {
  flex: 1;
  max-height: none !important;
  height: auto !important;
}

/* Traven Modal Dialog System */
.traven-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.traven-modal-overlay.is-active {
  opacity: 1;
}

.traven-modal {
  background: var(--bg-primary, #ffffff);
  color: var(--text-primary, #0f172a);
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 90%;
  max-width: 480px;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s ease;
  border: 1px solid var(--border-color, #e2e8f0);
  font-family: 'Atkinson Hyperlegible Next', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.traven-modal-overlay.is-active .traven-modal {
  transform: scale(1);
}

.traven-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.traven-modal-title {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0;
}

.traven-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary, #64748b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: all 0.15s ease;
  padding: 0;
}

.traven-modal-close:hover {
  background-color: var(--bg-hover, #f1f5f9);
  color: var(--text-primary, #0f172a);
}

.traven-modal-close svg {
  width: 14px;
  height: 14px;
}

.traven-modal-body {
  padding: 20px;
  font-size: 0.92em;
  line-height: 1.5;
}

.traven-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background-color: var(--bg-secondary, #f8fafc);
}

.traven-modal-field {
  margin-bottom: 16px;
}

.traven-modal-field:last-child {
  margin-bottom: 0;
}

.traven-modal-label {
  display: block;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text-secondary, #475569);
  margin-bottom: 6px;
}

.traven-modal-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 6px;
  font-size: 0.9em;
  outline: none;
  background-color: var(--bg-primary, #ffffff);
  color: var(--text-primary, #0f172a);
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.traven-modal-input:focus {
  border-color: var(--accent, #475569);
}

.traven-modal-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.traven-modal-btn.btn-primary {
  background-color: var(--accent, #334155);
  color: white;
  border: 1px solid transparent;
}

.traven-modal-btn.btn-primary:hover {
  background-color: var(--accent-hover, #1e293b);
}

.traven-modal-btn.btn-secondary {
  background-color: var(--bg-primary, #ffffff);
  color: var(--text-secondary, #475569);
  border: 1px solid var(--border-color, #e2e8f0);
}

.traven-modal-btn.btn-secondary:hover {
  background-color: var(--bg-hover, #f8fafc);
  color: var(--text-primary, #0f172a);
}

/* Help Dialog Content styling */
.help-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.help-section-title {
  font-weight: 700;
  font-size: 0.9em;
  color: var(--accent, #475569);
  margin-top: 8px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.help-section-title:first-child {
  margin-top: 0;
}

.help-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-color, #e2e8f0);
  padding: 4px 0;
}

.help-row:last-child {
  border-bottom: none;
}

.help-key {
  color: var(--text-primary, #0f172a);
}

.help-value {
  color: var(--text-secondary, #64748b);
  font-family: monospace;
  background-color: var(--bg-secondary, #f1f5f9);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Image Modal — Interactive Dropzone */
.traven-modal-dropzone {
  border: 2px dashed var(--border-color, #cbd5e1);
  background-color: var(--bg-secondary, #f8fafc);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.traven-modal-dropzone.is-dragover,
.traven-modal-dropzone:hover {
  border-color: var(--accent, #334155);
  background-color: var(--bg-hover, #f1f5f9);
}

.traven-modal-dropzone.has-file {
  border-style: solid;
  padding: 12px;
  cursor: default;
}

.traven-modal-dropzone-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.traven-modal-dropzone-icon {
  color: var(--text-secondary, #64748b);
  transition: color 0.2s;
  width: 32px;
  height: 32px;
}

.traven-modal-dropzone:hover .traven-modal-dropzone-icon,
.traven-modal-dropzone.is-dragover .traven-modal-dropzone-icon {
  color: var(--accent, #334155);
}

.traven-modal-dropzone-text {
  font-size: 0.88em;
  color: var(--text-secondary, #475569);
  font-weight: 500;
}

.traven-modal-dropzone-preview {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.traven-modal-dropzone-preview .traven-modal-thumb-container {
  margin-top: 0;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid var(--border-color, #e2e8f0);
  background-color: var(--bg-primary, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.traven-modal-dropzone-preview .traven-modal-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  display: block;
  border-radius: 5px;
}

.traven-modal-file-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  overflow: hidden;
  flex-grow: 1;
}

.traven-modal-file-name {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: var(--text-primary, #0f172a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
  font-weight: 400;
}

.traven-modal-file-details {
  font-size: 11px;
  color: var(--text-secondary, #64748b);
  display: inline-flex;
  gap: 2px;
}

.traven-modal-remove-btn {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--bg-primary, #ffffff);
  border: none;
  color: var(--text-secondary, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
  padding: 0;
  z-index: 10;
}

.traven-modal-remove-btn:hover {
  color: #ef4444;
  transform: scale(1.1);
}

.traven-modal-remove-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

/* Image Modal — Upload spinner state */
.traven-modal-btn.is-uploading {
  opacity: 0.7;
  pointer-events: none;
}

/* Image Modal — Validation / upload error */
.traven-modal-error {
  color: #d32f2f;
  font-size: 13px;
  margin-top: 8px;
}

/* Image Modal — Disabled URL field when file is chosen */
.traven-modal-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   Table Editor Modal
   ======================================== */

/* Table action toolbar strip */
.traven-table-toolbar {
  display: flex;
  gap: 6px;
  padding: 0 0 16px 0;
  flex-wrap: wrap;
}

.traven-table-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 6px;
  background: var(--bg-primary, #ffffff);
  color: var(--text-secondary, #475569);
  font-size: 0.8em;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.traven-table-toolbar-btn:hover:not(:disabled) {
  background-color: var(--bg-hover, #f1f5f9);
  border-color: #cbd5e1;
  color: var(--text-primary, #0f172a);
}

.traven-table-toolbar-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.traven-table-toolbar-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.traven-table-toolbar-btn svg rect:not([stroke]) {
  stroke: none;
}

/* Editable table inside modal */
.traven-table-editor {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
}

.traven-table-editor th,
.traven-table-editor td {
  padding: 8px 12px;
  border: 1px solid var(--border-color, #e2e8f0);
  text-align: left;
  outline: none;
  min-width: 60px;
  height: 38px;
  /* Acts as min-height for table cells */
  box-sizing: border-box;
  transition: background-color 0.1s ease;
}

.traven-table-editor th {
  background-color: var(--bg-secondary, #f1f5f9);
  font-weight: 600;
  color: var(--text-primary, #0f172a);
}

.traven-table-editor td {
  background-color: var(--bg-primary, #ffffff);
}

.traven-table-editor th:focus,
.traven-table-editor td:focus {
  background-color: var(--table-focus-bg, rgba(100, 116, 139, 0.08));
  box-shadow: inset 0 0 0 2px var(--table-focus-ring, rgba(100, 116, 139, 0.3));
}

.traven-table-editor tr:nth-child(even) td {
  background-color: var(--bg-secondary, #f8fafc);
}

/* Wider modal variant for table content */
.traven-modal.traven-modal-table {
  max-width: 680px;
}

.traven-modal.traven-modal-table .traven-modal-body {
  overflow-x: auto;
}

/* Confirmation modal variant */
.traven-modal.traven-modal-confirm {
  max-width: 320px;
}

.traven-modal.traven-modal-confirm .traven-modal-header {
  display: none;
}

.traven-modal.traven-modal-confirm .traven-modal-body {
  padding: 24px 20px 20px;
  text-align: center;
  font-size: 1.1em;
  font-weight: 500;
}

.traven-modal.traven-modal-confirm .traven-modal-footer {
  justify-content: center;
  padding: 12px 20px 16px;
}

/* ==========================================================================
   Dark Theme overrides (.cm-wysiwym-dark)
   ========================================================================== */
.traven-modal-overlay.cm-wysiwym-dark .traven-modal {
  background-color: #1e293b;
  color: #f8fafc;
  border-color: #334155;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-header {
  border-bottom-color: #334155;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-title {
  color: #f8fafc;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-close {
  color: #94a3b8;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-close:hover {
  background-color: #334155;
  color: #f8fafc;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-body {
  color: #e2e8f0;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-footer {
  background-color: #0f172a;
  border-top-color: #334155;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-label {
  color: #94a3b8;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-input {
  background-color: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.traven-modal-overlay.cm-wysiwym-dark .traven-table-toolbar-btn {
  background-color: #1e293b;
  color: #94a3b8;
  border-color: #334155;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-table-toolbar-btn:hover:not(:disabled) {
  background-color: #334155;
  border-color: #475569;
  color: #f8fafc;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-table-editor {
  border-color: #334155;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-table-editor th,
.traven-modal-overlay.cm-wysiwym-dark .traven-table-editor td {
  border-color: #334155;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-table-editor th {
  background-color: #0f172a;
  color: #f8fafc;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-table-editor td {
  background-color: #1e293b;
  color: #cbd5e1;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-table-editor tr:nth-child(even) td {
  background-color: #182235;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-table-editor th:focus,
.traven-modal-overlay.cm-wysiwym-dark .traven-table-editor td:focus {
  background-color: rgba(56, 189, 248, 0.1);
  box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.4);
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-dropzone {
  border-color: #334155;
  background-color: #0f172a;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-dropzone.is-dragover,
.traven-modal-overlay.cm-wysiwym-dark .traven-modal-dropzone:hover {
  border-color: #38bdf8;
  background-color: rgba(56, 189, 248, 0.04);
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-dropzone-icon {
  color: #94a3b8;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-dropzone.is-dragover .traven-modal-dropzone-icon,
.traven-modal-overlay.cm-wysiwym-dark .traven-modal-dropzone:hover .traven-modal-dropzone-icon {
  color: #38bdf8;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-dropzone-text {
  color: #94a3b8;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-dropzone-preview .traven-modal-thumb-container {
  border-color: #334155;
  background-color: #1e293b;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-file-name {
  color: #f8fafc;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-remove-btn {
  background-color: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-remove-btn:hover {
  color: #f87171;
  border-color: #f87171;
  background-color: rgba(248, 113, 113, 0.1);
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-file-details {
  color: #94a3b8;
}

/* Hide expand/collapse toggle by default in standard toolbars */
.btn-expand-toggle {
  display: none !important;
}

.btn-expand-toggle .icon-expanded {
  display: none !important;
}

/* .btn-component — Insert Component shortcode button.
   No custom rules needed; .toolbar-btn defaults apply.
   To hide this button, use: .toolbar-btn.btn-component { display: none; } */

/* Layout Preset and Size selectors */
.traven-modal-presets-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.traven-modal-size-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 4px;
}

.traven-modal-preset-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 6px 12px;
  outline: none;
  height: 38px;
}

.traven-modal-size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  padding: 0;
}

.traven-modal-size-pill.size-s {
  width: 16px;
  height: 24px;
  font-size: 10px;
  line-height: 24px;
}

.traven-modal-size-pill.size-m {
  width: 20px;
  height: 30px;
  font-size: 12px;
  line-height: 30px;
}

.traven-modal-size-pill.size-l {
  width: 24px;
  height: 36px;
  font-size: 14px;
  line-height: 36px;
}

.traven-modal-preset-btn:hover,
.traven-modal-size-pill:hover {
  background-color: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.traven-modal-preset-btn.active,
.traven-modal-size-pill.active {
  background-color: #f1f5f9;
  border-color: #0f172a;
  color: #0f172a;
  box-shadow: 0 0 0 1px #0f172a;
}

/* Dark theme styles */
.traven-modal-overlay.cm-wysiwym-dark .traven-modal-preset-btn,
.traven-modal-overlay.cm-wysiwym-dark .traven-modal-size-pill {
  background-color: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-preset-btn:hover,
.traven-modal-overlay.cm-wysiwym-dark .traven-modal-size-pill:hover {
  background-color: #1e293b;
  color: #f8fafc;
  border-color: #475569;
}

.traven-modal-overlay.cm-wysiwym-dark .traven-modal-preset-btn.active,
.traven-modal-overlay.cm-wysiwym-dark .traven-modal-size-pill.active {
  background-color: #1e293b;
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8;
}