/* FileMorning display preferences. The default ('classic') remains byte-for-byte
   visually compatible: overrides are scoped exclusively to the two opt-in modes. */
:root[data-fm-theme="minimal"] {
  color-scheme: light;
  --main-black: #28323b;
  --violet: #30435c;
  --violet_nom_site: #30435c;
  --menu-bg: #f1f3f5;
  --menu-hover-bg: #e6ecef;
  --menu-hover-text: #1c3348;
  --submenu-bg: #f7f8f9;
  --submenu-text: #34445a;
  --subsubmenu-bg: #f9fafb;
  --subsubmenu-text: #34445a;
  --green-text: #365e59;
  --green-hover: #deece8;
  --eft-setting-hover-bg: #e9f3ef;
}
:root[data-fm-theme="minimal"] body { background:#fafafa; }
:root[data-fm-theme="minimal"] :is(.site-header, .operation-zone, .file-item, .eft-preview-card, .eft-result-card, #drop-zone) {
  box-shadow: none !important;
}
:root[data-fm-theme="minimal"] .operation-zone { background:#fff; border:1px solid #cdd5dc; }
:root[data-fm-theme="minimal"] :is(.file-item, .eft-preview-card, .eft-result-card) { background:#fff; }
:root[data-fm-theme="minimal"] .menu-item a {transition:background-color .15s ease, color .15s ease;}
:root[data-fm-theme="minimal"] .menu-item a:hover {transform:none; box-shadow:none;}
:root[data-fm-theme="minimal"] :is(.menu-item a::before, .operation-convert::before, .upload-btn::before) {display:none;}

:root[data-fm-theme="dark"] {
  color-scheme: dark;
  --main-black:#edf2fc;
  --violet:#d4b8ff;
  --violet_nom_site:#dfc7ff;
  --menu-bg:#25344c;
  --menu-hover-bg:#344865;
  --menu-hover-text:#f1e7ff;
  --submenu-bg:#202f45;
  --submenu-text:#e4d6ff;
  --submenu-hover-bg:#32435c;
  --submenu-hover-text:#f5ecff;
  --subsubmenu-bg:#223047;
  --subsubmenu-text:#e4d6ff;
  --green-text:#a5ecd0;
  --green-hover:#244b40;
  --eft-setting-hover-bg:#244b40;
  --violet-light:#343050;
}
:root[data-fm-theme="dark"] body { background:#121c2a; color:#edf2fc; }
:root[data-fm-theme="dark"] :is(.site-header, .operation-zone, .operation-parameters, #drop-zone, .file-item, .eft-preview-card, .eft-result-card, .image-pdf-result, .url-box, .url-modal, .fm-language-options, .fm-theme-options) {
  background-color:#1b2a3e; color:#edf2fc; border-color:#425875;
}
:root[data-fm-theme="dark"] .operation-zone {border-style:dashed;}
:root[data-fm-theme="dark"] :is(.fm-language-bar, .site-header) {border-color:#374962;}
:root[data-fm-theme="dark"] :is(.fm-language-picker > summary, .fm-theme-picker > summary, .fm-theme-options button, .fm-language-options a) {background:#243750; color:#edf2fc; border-color:#52627b;}
:root[data-fm-theme="dark"] :is(.fm-theme-options button:hover, .fm-language-options a:hover, .fm-theme-options button:focus-visible, .fm-language-options a:focus-visible) {background:#344965;}
:root[data-fm-theme="dark"] :is(.file-name, .file-info, .file-counter, .eft-result-card-info span, .image-pdf-result-info span, .eft-preview-help, .eft-preview-hint, .url-box h3) {color:#e3ebf6;}
:root[data-fm-theme="dark"] :is(.operation-parameters-fieldset input, .operation-parameters-fieldset select, .operation-parameters-fieldset textarea, .url-box input, .eft-preview-toolbar select) {
  background:#142134; color:#edf2fc; border-color:#64748b;
}
:root[data-fm-theme="dark"] :is(.operation-parameters-fieldset input:disabled, .operation-parameters-fieldset select:disabled) {opacity:.65;}
:root[data-fm-theme="dark"] :is(.file-multi-outputs, .file-multi-output, .eft-preview-stage, .eft-config-scope-card) {background:#203149; color:#edf2fc; border-color:#51637f;}
:root[data-fm-theme="dark"] :is(.operation-format-selector, .operation-progress, .operation-navigation) {color:#edf2fc;}
:root[data-fm-theme="dark"] :is(.fm-language-picker, .fm-theme-picker) {color:#edf2fc;}
:root[data-fm-theme="dark"] :is(.operation-zone h1, .operation-zone h2, .operation-zone h3, .operation-zone p, .operation-zone label) {color:inherit;}
:root[data-fm-theme="dark"] :is(a:focus-visible, button:focus-visible, summary:focus-visible) {outline-color:#a4c6ff;}
/* Preserve branded primary action styles (success/error colors) for contrast. */
@media (prefers-reduced-motion: reduce) {
  :root[data-fm-theme] .menu-item a {transition:none;}
}
