/* RUJOB WYSIWYG Editor Styling (Powered by Quill.js) */

/* General Container */
.quill-editor-wrapper {
    margin-bottom: 0.5rem;
}

.quill-editor-wrapper .ql-toolbar.ql-snow {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    border-color: var(--bs-border-color, #ced4da);
    background-color: var(--bs-tertiary-bg, #f8fafc);
    font-family: inherit;
    padding: 8px 10px;
}

.quill-editor-wrapper .ql-container.ql-snow {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    border-color: var(--bs-border-color, #ced4da);
    background-color: var(--bs-body-bg, #ffffff);
    color: var(--bs-body-color, #212529);
    font-family: 'Noto Sans Thai', 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.95rem;
    min-height: 180px;
}

.quill-editor-wrapper .ql-editor {
    min-height: 180px;
    line-height: 1.65;
}

.quill-editor-wrapper .ql-editor.ql-blank::before {
    color: var(--bs-secondary-color, #6c757d);
    font-style: normal;
    font-family: inherit;
}

/* Focused State */
.quill-editor-wrapper.is-focused .ql-toolbar.ql-snow,
.quill-editor-wrapper.is-focused .ql-container.ql-snow {
    border-color: #152E6B;
}

/* Dark Mode Support for Frontend & AdminLTE */
[data-bs-theme="dark"] .quill-editor-wrapper .ql-toolbar.ql-snow,
html[data-bs-theme="dark"] .quill-editor-wrapper .ql-toolbar.ql-snow,
body.dark-mode .quill-editor-wrapper .ql-toolbar.ql-snow {
    border-color: #495057;
    background-color: #1e293b;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .quill-editor-wrapper .ql-container.ql-snow,
html[data-bs-theme="dark"] .quill-editor-wrapper .ql-container.ql-snow,
body.dark-mode .quill-editor-wrapper .ql-container.ql-snow {
    border-color: #495057;
    background-color: #0f172a;
    color: #f8fafc;
}

[data-bs-theme="dark"] .quill-editor-wrapper .ql-stroke,
html[data-bs-theme="dark"] .quill-editor-wrapper .ql-stroke,
body.dark-mode .quill-editor-wrapper .ql-stroke {
    stroke: #cbd5e1;
}

[data-bs-theme="dark"] .quill-editor-wrapper .ql-fill,
html[data-bs-theme="dark"] .quill-editor-wrapper .ql-fill,
body.dark-mode .quill-editor-wrapper .ql-fill {
    fill: #cbd5e1;
}

[data-bs-theme="dark"] .quill-editor-wrapper .ql-picker,
html[data-bs-theme="dark"] .quill-editor-wrapper .ql-picker,
body.dark-mode .quill-editor-wrapper .ql-picker {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .quill-editor-wrapper .ql-picker-options,
html[data-bs-theme="dark"] .quill-editor-wrapper .ql-picker-options,
body.dark-mode .quill-editor-wrapper .ql-picker-options {
    background-color: #1e293b;
    border-color: #495057;
}

/* Admin Specific Tweaks */
.field-description .quill-editor-wrapper,
.field-content .quill-editor-wrapper {
    width: 100%;
}

