/* WYSIWYG Comments Editor Styles */

.comment-editor-container {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: white;
}

.comment-editor {
    min-height: 120px;
    font-size: 0.85em;
}

.comment-editor .ql-editor {
    min-height: 100px;
    font-size: 0.85em;
    line-height: 1.4;
}

.comment-editor .ql-toolbar {
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 0.375rem 0.375rem 0 0;
}

.comment-editor .ql-container {
    border-radius: 0 0 0.375rem 0.375rem;
}

/* Compact toolbar for comments */
.comment-editor .ql-toolbar .ql-formats {
    margin-right: 10px;
}

.comment-editor .ql-toolbar .ql-picker-label {
    font-size: 12px;
}

/* Read-only comment display styles */
.comment-content {
    font-size: 0.85em;
    line-height: 1.4;
}

.comment-content h1, .comment-content h2, .comment-content h3 {
    font-size: 1.1em;
    margin: 0.5em 0 0.3em 0;
    font-weight: 600;
}

.comment-content h1 {
    font-size: 1.2em;
}

.comment-content h2 {
    font-size: 1.15em;
}

.comment-content h3 {
    font-size: 1.1em;
}

.comment-content p {
    margin: 0.3em 0;
}

.comment-content ul, .comment-content ol {
    margin: 0.3em 0;
    padding-left: 1.5em;
}

.comment-content li {
    margin: 0.1em 0;
}

.comment-content strong {
    font-weight: 600;
}

.comment-content em {
    font-style: italic;
}

.comment-content u {
    text-decoration: underline;
}

.comment-content blockquote {
    border-left: 3px solid #007bff;
    margin: 0.5em 0;
    padding-left: 1em;
    color: #6c757d;
    font-style: italic;
}

.comment-content code {
    background-color: #f8f9fa;
    padding: 0.1em 0.3em;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.comment-content pre {
    background-color: #f8f9fa;
    padding: 0.5em;
    border-radius: 0.25rem;
    overflow-x: auto;
    margin: 0.5em 0;
}

.comment-content pre code {
    background: none;
    padding: 0;
}

/* Compact editor for small spaces */
.comment-editor-compact {
    font-size: 0.8em;
}

.comment-editor-compact .ql-editor {
    min-height: 80px;
    font-size: 0.8em;
}

.comment-editor-compact .ql-toolbar {
    padding: 4px 8px;
}

.comment-editor-compact .ql-toolbar .ql-formats {
    margin-right: 8px;
}

/* Error states */
.comment-editor-error {
    border-color: #dc3545;
}

.comment-editor-error .ql-toolbar {
    background-color: #f8d7da;
}

/* Loading state */
.comment-editor-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .comment-editor .ql-toolbar {
        padding: 4px;
    }
    
    .comment-editor .ql-toolbar .ql-formats {
        margin-right: 6px;
    }
    
    .comment-editor .ql-editor {
        min-height: 80px;
        font-size: 0.8em;
    }
}
