/* ============================================
   EDITOR RICO CUSTOMIZADO
   ============================================ */

.rich-text-editor {
    border: 2px solid #e8e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    background: #ffffff;
}

.rich-text-editor:focus-within {
    border-color: #6c63ff;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

/* Toolbar */
.rte-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 10px;
    background: #fafafc;
    border-bottom: 1px solid #e8e8f0;
    flex-wrap: wrap;
}

.rte-toolbar button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #4a4a5a;
    transition: all 0.2s ease;
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1;
}

.rte-toolbar button:hover {
    background: #f0edff;
    color: #6c63ff;
}

.rte-toolbar button.active {
    background: #6c63ff;
    color: #fff;
}

.rte-toolbar button strong,
.rte-toolbar button em,
.rte-toolbar button u {
    font-size: 14px;
}

/* Separador */
.rte-separator {
    width: 1px;
    height: 24px;
    background: #e0e0ea;
    margin: 0 6px;
}

/* Área de conteúdo editável */
.rte-content {
    padding: 16px;
    min-height: 150px;
    max-height: auto;
    overflow-y: auto;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 15px;
    color: #1a1a2e;
    line-height: 1.6;
    outline: none;
    word-wrap: break-word;
}

.rte-content:empty::before {
    content: attr(data-placeholder);
    color: #b8b8cc;
    pointer-events: none;
}

/* Placeholder */
.rte-content[data-placeholder]:empty:before {
    content: attr(data-placeholder);
    color: #b8b8cc;
}

/* Estilos dentro do editor */
.rte-content ul,
.rte-content ol {
    padding-left: 24px;
    margin: 8px 0;
}

.rte-content li {
    margin-bottom: 4px;
}

.rte-content a {
    color: #6c63ff;
    text-decoration: underline;
}

.rte-content p {
    margin: 0 0 12px 0;
}

.rte-content p:last-child {
    margin-bottom: 0;
}

/* Scrollbar */
.rte-content::-webkit-scrollbar {
    width: 6px;
}

.rte-content::-webkit-scrollbar-track {
    background: #f5f5fa;
    border-radius: 3px;
}

.rte-content::-webkit-scrollbar-thumb {
    background: #d4d4e0;
    border-radius: 3px;
}

.rte-content::-webkit-scrollbar-thumb:hover {
    background: #b8b8cc;
}