/* Nordic Dark & Clean Theme for Quill.js WYSIWYG Editor */

.quill-editor-wrapper {
    margin-bottom: 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.quill-editor-wrapper .ql-toolbar.ql-snow {
    background: #252b33;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
}

/* Icons styling for Nordic Dark */
.quill-editor-wrapper .ql-snow .ql-stroke {
    stroke: #d8dee9;
}

.quill-editor-wrapper .ql-snow .ql-fill {
    fill: #d8dee9;
}

.quill-editor-wrapper .ql-snow .ql-picker {
    color: #d8dee9;
}

/* Hover & Active States (Teal / Nordic Frost) */
.quill-editor-wrapper .ql-snow .ql-picker:hover,
.quill-editor-wrapper .ql-snow button:hover .ql-stroke,
.quill-editor-wrapper .ql-snow button.ql-active .ql-stroke {
    stroke: #88c0d0 !important;
}

.quill-editor-wrapper .ql-snow button:hover .ql-fill,
.quill-editor-wrapper .ql-snow button.ql-active .ql-fill {
    fill: #88c0d0 !important;
}

.quill-editor-wrapper .ql-snow .ql-picker:hover .ql-picker-label,
.quill-editor-wrapper .ql-snow .ql-picker-label.ql-active {
    color: #88c0d0 !important;
}

/* Dropdown Options */
.quill-editor-wrapper .ql-snow .ql-picker-options {
    background: #2e3440;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    padding: 0.5rem;
}

.quill-editor-wrapper .ql-snow .ql-picker-item {
    color: #eceff4;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.quill-editor-wrapper .ql-snow .ql-picker-item:hover {
    background: rgba(136, 192, 208, 0.15);
    color: #88c0d0;
}

/* Editor Container */
.quill-editor-wrapper .ql-container.ql-snow {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    color: #eceff4;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
}

.quill-editor-wrapper .ql-editor {
    min-height: 160px;
    max-height: 480px;
    overflow-y: auto;
    padding: 0.85rem 1rem;
}

.quill-editor-wrapper .ql-editor.ql-blank::before {
    color: rgba(216, 222, 233, 0.4);
    font-style: italic;
    left: 1rem;
    right: 1rem;
}

/* Typography Inside Quill Editor */
.quill-editor-wrapper .ql-editor h1,
.quill-editor-wrapper .ql-editor h2,
.quill-editor-wrapper .ql-editor h3,
.quill-editor-wrapper .ql-editor h4 {
    color: #eceff4;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.quill-editor-wrapper .ql-editor p {
    margin-bottom: 0.75rem;
}

.quill-editor-wrapper .ql-editor blockquote {
    border-left: 3px solid #88c0d0;
    padding-left: 0.75rem;
    color: #81a1c1;
    margin: 0.5rem 0;
}

.quill-editor-wrapper .ql-editor a {
    color: #88c0d0;
    text-decoration: underline;
}

.quill-editor-wrapper .ql-editor code {
    background: rgba(255, 255, 255, 0.08);
    color: #ebcb8b;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-size: 0.85em;
}

.quill-editor-wrapper .ql-editor pre {
    background: #20242c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.75rem;
    color: #e5e9f0;
}

/* Light Theme Support */
[data-theme="nordic-light"] .quill-editor-wrapper .ql-toolbar.ql-snow,
[data-theme="light"] .quill-editor-wrapper .ql-toolbar.ql-snow {
    background: #e5e9f0;
    border-color: #d8dee9;
}

[data-theme="nordic-light"] .quill-editor-wrapper .ql-snow .ql-stroke,
[data-theme="light"] .quill-editor-wrapper .ql-snow .ql-stroke {
    stroke: #2e3440;
}

[data-theme="nordic-light"] .quill-editor-wrapper .ql-snow .ql-fill,
[data-theme="light"] .quill-editor-wrapper .ql-snow .ql-fill {
    fill: #2e3440;
}

[data-theme="nordic-light"] .quill-editor-wrapper .ql-container.ql-snow,
[data-theme="light"] .quill-editor-wrapper .ql-container.ql-snow {
    background: #ffffff;
    border-color: #d8dee9;
    color: #2e3440;
}

[data-theme="nordic-light"] .quill-editor-wrapper .ql-editor h1,
[data-theme="nordic-light"] .quill-editor-wrapper .ql-editor h2,
[data-theme="nordic-light"] .quill-editor-wrapper .ql-editor h3,
[data-theme="light"] .quill-editor-wrapper .ql-editor h1,
[data-theme="light"] .quill-editor-wrapper .ql-editor h2,
[data-theme="light"] .quill-editor-wrapper .ql-editor h3 {
    color: #2e3440;
}
