/* Estilos para el RichTextEditor basado en Blazored.TextEditor (Quill) */

/* Contenedor del editor */
.ql-container {
    font-family: inherit;
    font-size: 14px;
}

/* Toolbar con estilo Bootstrap */
.ql-toolbar.ql-snow {
    border: 1px solid #ced4da;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    background-color: #f8f9fa;
    padding: 0.5rem;
}

/* Editor content */
.ql-container.ql-snow {
    border: 1px solid #ced4da;
    border-radius: 0 0 0.375rem 0.375rem;
    background-color: white;
    min-height: 150px;
}

/* Ajustar altura del editor */
.ql-editor {
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
}

/* Editor deshabilitado */
.ql-container.ql-disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.ql-toolbar.ql-snow.ql-disabled {
    background-color: #e9ecef;
    pointer-events: none;
    opacity: 0.6;
}

/* Formato del contenido */
.ql-editor p {
    margin-bottom: 0.5rem;
}

.ql-editor p:last-child {
    margin-bottom: 0;
}

.ql-editor ul,
.ql-editor ol {
    padding-left: 2rem;
    margin-bottom: 0.5rem;
}

.ql-editor li {
    margin-bottom: 0.25rem;
}

/* Placeholder */
.ql-editor.ql-blank::before {
    color: #6c757d;
    font-style: italic;
}

/* Botones del toolbar */
.ql-toolbar button {
    width: 28px;
    height: 28px;
}

.ql-toolbar button:hover {
    background-color: #e9ecef;
    border-radius: 0.25rem;
}

.ql-toolbar button.ql-active {
    background-color: #0d6efd;
    color: white;
    border-radius: 0.25rem;
}

/* Separadores */
.ql-formats {
    margin-right: 8px;
}

/* Dropdowns */
.ql-toolbar select {
    height: 28px;
    font-size: 13px;
}

/* Fix para colores */
.ql-color-picker .ql-picker-label,
.ql-background .ql-picker-label {
    width: 28px;
    height: 28px;
}

/* Estilos para Radzen (mantener compatibilidad) */
.rz-html-editor {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    overflow: hidden;
}

.rz-html-editor-toolbar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.rz-html-editor-content {
    background-color: white;
    padding: 0.75rem;
    min-height: 100px;
    overflow-y: auto;
}

.rz-html-editor-content:focus {
    outline: none;
}

.rz-html-editor[disabled] {
    background-color: #e9ecef;
    opacity: 0.6;
    cursor: not-allowed;
}

.rz-html-editor[disabled] .rz-html-editor-toolbar {
    pointer-events: none;
}

.rz-html-editor[disabled] .rz-html-editor-content {
    background-color: #e9ecef;
}
