/* Rich Text Editor Styling */
.rich-text-editor-container {
    margin-bottom: 1rem;
}

.rich-text-editor-container .form-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.rich-text-editor {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

/* Quill editor specific styles */
.ql-toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #ddd !important;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.ql-container {
    border: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.ql-editor {
    padding: 12px 15px;
}

.ql-editor.ql-blank::before {
    color: #999;
    font-style: normal;
}

/* Quill toolbar buttons */
.ql-toolbar button {
    width: 28px;
    height: 28px;
}

.ql-toolbar button:hover,
.ql-toolbar button:focus,
.ql-toolbar button.ql-active {
    color: #1a4d6f;
}

.ql-toolbar .ql-stroke {
    stroke: #444;
}

.ql-toolbar button:hover .ql-stroke,
.ql-toolbar button:focus .ql-stroke,
.ql-toolbar button.ql-active .ql-stroke {
    stroke: #1a4d6f;
}

.ql-toolbar .ql-fill {
    fill: #444;
}

.ql-toolbar button:hover .ql-fill,
.ql-toolbar button:focus .ql-fill,
.ql-toolbar button.ql-active .ql-fill {
    fill: #1a4d6f;
}

/* Dropdown styling */
.ql-toolbar .ql-picker {
    color: #444;
}

.ql-toolbar .ql-picker-options {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ql-toolbar .ql-picker-item:hover {
    background: #f0f9f4;
    color: #1a4d6f;
}

/* Content styling */
.ql-editor h1 {
    font-size: 2em;
    margin: 0.5em 0;
}

.ql-editor h2 {
    font-size: 1.5em;
    margin: 0.5em 0;
}

.ql-editor h3 {
    font-size: 1.17em;
    margin: 0.5em 0;
}

.ql-editor ul,
.ql-editor ol {
    padding-left: 1.5em;
    margin: 0.5em 0;
}

.ql-editor li {
    margin: 0.25em 0;
}

.ql-editor a {
    color: #1a4d6f;
    text-decoration: underline;
}

.ql-editor a:hover {
    color: #ff6b35;
}

/* Focus state */
.rich-text-editor:focus-within {
    border-color: #1a4d6f;
    box-shadow: 0 0 0 3px rgba(26, 77, 111, 0.1);
}

/* Error state */
.rich-text-editor-container.error .rich-text-editor {
    border-color: #e74c3c;
}

.rich-text-editor-container.error .form-label {
    color: #e74c3c;
}

/* Modal adjustments for rich text editor */
.modal-body .rich-text-editor-container {
    margin-bottom: 1.5rem;
}
