/* Rich Text Editor Component – Dark Theme */
.component-editor {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.docs-style-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.editor-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 12px;
    color: #9898B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.docs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #252540;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    gap: 4px;
    margin-bottom: 10px;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
}

.toolbar-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9898B8;
    transition: all 0.15s;
}

.toolbar-btn:hover {
    background: rgba(108, 92, 231, 0.15);
    color: #EAEAFF;
}

.toolbar-btn.disabled {
    opacity: 0.35;
    cursor: default;
}

.toolbar-btn.disabled:hover {
    background: transparent;
    color: #9898B8;
}

.material-symbols-outlined {
    font-size: 20px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.icon-small {
    font-size: 18px;
}

/* Font Family */
.font-family-group {
    cursor: pointer;
    padding: 0 8px;
    height: 30px;
    border-radius: 6px;
    transition: background 0.15s;
    display: flex;
    align-items: center;
}

.font-family-group:hover {
    background: rgba(108, 92, 231, 0.15);
}

.font-current {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #EAEAFF;
    min-width: 36px;
}

/* Font Size */
.font-size-input {
    width: 30px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    color: #EAEAFF;
    background: rgba(255, 255, 255, 0.06);
    padding: 0;
    margin: 0 2px;
    font-family: 'Inter', sans-serif;
}

.font-size-input:focus {
    outline: 2px solid #6C5CE7;
    border-color: transparent;
    background: #1e1e32;
}

/* Color Pickers */
.color-picker-wrapper {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
}

.color-picker-wrapper:hover {
    background: rgba(108, 92, 231, 0.15);
}

.color-picker-wrapper .material-symbols-outlined {
    position: relative;
    z-index: 1;
    color: #9898B8;
}

.hidden-color-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.color-indicator {
    position: absolute;
    bottom: 3px;
    left: 7px;
    right: 7px;
    height: 3px;
    background-color: #fff;
    z-index: 1;
    border-radius: 2px;
}

.highlight-indicator {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 3px;
    bottom: 3px;
}

.icon-color {
    margin-bottom: 2px;
}

.dropdown-wrapper {
    display: flex;
    align-items: center;
}

/* Editor */
.docs-editor {
    width: 100%;
    min-height: 100px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.5;
    background: #1a1a2e;
    color: #EAEAFF;
    transition: border 0.25s, box-shadow 0.25s;
    outline: none;
    overflow-y: auto;
}

.docs-editor:focus {
    border-color: #6C5CE7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
}

.docs-editor::-webkit-scrollbar {
    width: 5px;
}

.docs-editor::-webkit-scrollbar-track {
    background: transparent;
}

.docs-editor::-webkit-scrollbar-thumb {
    background: #252540;
    border-radius: 3px;
}

.docs-editor ul,
.docs-editor ol {
    padding-left: 22px;
    margin: 6px 0;
}