/**
 * Rich Text Editor Component - Styles
 */

.rich-editor-wrapper {
    margin-bottom: 0.5rem;
}

.rich-editor {
    border: 1px solid #ced4da;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.editor-toolbar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 8px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.editor-toolbar button {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.editor-toolbar button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.editor-toolbar button:active {
    transform: translateY(1px);
}

.editor-toolbar button i {
    pointer-events: none;
}

.toolbar-separator {
    width: 1px;
    height: 24px;
    background: #dee2e6;
    margin: 0 4px;
}

.editor-content {
    padding: 1rem;
    min-height: 200px;
    outline: none;
    line-height: 1.6;
    font-size: 14px;
    background: white;
}

.editor-content:empty:before {
    content: attr(data-placeholder);
    color: #6c757d;
    pointer-events: none;
}

.editor-content:focus {
    background-color: #fafafa;
}

.editor-content p {
    margin-bottom: 0.5rem;
}

.editor-content ul, 
.editor-content ol {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.editor-content hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 1rem 0;
}

.editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.editor-content a {
    color: #007bff;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
    .editor-toolbar {
        padding: 6px;
        gap: 2px;
    }
    
    .editor-toolbar button {
        min-width: 28px;
        height: 28px;
        padding: 4px 6px;
        font-size: 0.75rem;
    }
    
    .toolbar-separator {
        height: 20px;
        margin: 0 2px;
    }
}
