/* ============================================================================
   Zauber RTE - Complete Editor Styles
   A modern, extensible rich-text editor for Blazor applications
   ============================================================================ */

/* ===== Main Container ===== */
.zauber-rte {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: white;
    font-family: inherit;
    position: relative;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    touch-action: manipulation;
    overflow: hidden;
}

.zauber-rte:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.zauber-rte:focus-within {
    box-shadow: none;
    border-color: #cbd5e1;
}

.zauber-rte.rte-theme-dark {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

/* ===== Toolbar ===== */
.rte-toolbar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.rte-toolbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.02) 50%, transparent 100%);
}

.zauber-rte.rte-theme-dark .rte-toolbar {
    border-color: #334155;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.zauber-rte.rte-theme-dark .rte-toolbar::before {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
}

/* Toolbar Rows */
.rte-toolbar-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.125rem !important;
    padding-right: 0.75rem !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    align-items: center !important;
}

.rte-toolbar-row:last-child {
    border-right: none !important;
    padding-right: 0 !important;
}

.rte-theme-dark .rte-toolbar-row {
    border-right-color: rgba(255, 255, 255, 0.1) !important;
}

/* ===== Toolbar Buttons ===== */
.rte-toolbar-btn,
button.rte-toolbar-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    min-width: 2.25rem !important;
    min-height: 2.25rem !important;
    max-width: 2.25rem !important;
    max-height: 2.25rem !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-radius: 0.375rem !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
    text-transform: none !important;
    font-weight: 400 !important;
    font-family: inherit !important;
    letter-spacing: normal !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: button !important;
    appearance: button !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    vertical-align: middle !important;
    box-shadow: none !important;
    outline: none !important;
    outline-offset: 0 !important;
}

.rte-toolbar-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
    border: none !important;
}

.rte-toolbar-btn:hover {
    background: #f1f5f9 !important;
    color: #334155 !important;
}

.rte-toolbar-btn:hover::before {
    opacity: 1 !important;
}

.rte-toolbar-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.rte-toolbar-btn.rte-btn-active {
    background: #3b82f6 !important;
    color: white !important;
}

.rte-toolbar-btn.rte-btn-active:hover {
    background: #2563eb !important;
}

.rte-toolbar-btn.rte-btn-disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Dark theme toolbar buttons */
.rte-theme-dark .rte-toolbar-btn {
    background: transparent !important;
    color: #f9fafb !important;
}

.rte-theme-dark .rte-toolbar-btn:hover {
    background: #334155 !important;
    color: #f1f5f9 !important;
}

.rte-theme-dark .rte-toolbar-btn.rte-btn-active {
    background: #3b82f6 !important;
    color: white !important;
}

/* ===== Toolbar Icons ===== */
.rte-toolbar-icon {
    width: 1rem !important;
    height: 1rem !important;
    fill: currentColor !important;
}

/* Text-based toolbar buttons (for items without icons) */
.rte-toolbar-btn-text {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: inherit !important;
}

/* Font Awesome Icons */
.rte-toolbar-btn i,
.rte-toolbar-btn i.fas,
.rte-toolbar-btn i.fa,
.rte-toolbar-btn i.far,
.rte-toolbar-btn i.fal,
.rte-toolbar-btn i.fab {
    font-size: 0.875rem !important;
    line-height: 1 !important;
    color: inherit !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.rte-theme-dark .rte-toolbar-btn i,
.rte-theme-dark .rte-toolbar-btn i.fas,
.rte-theme-dark .rte-toolbar-btn i.fa,
.rte-theme-dark .rte-toolbar-btn i.far,
.rte-theme-dark .rte-toolbar-btn i.fal,
.rte-theme-dark .rte-toolbar-btn i.fab {
    color: #f9fafb !important;
}

/* Heading Labels */
.rte-heading-label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    background: none !important;
    border: none !important;
    text-transform: uppercase !important;
}

.rte-theme-dark .rte-toolbar-btn .rte-heading-label {
    color: #f9fafb !important;
}

/* ===== Editor Container ===== */
.rte-editor-container {
    position: relative;
}

/* Content Editable */
.rte-content {
    padding: 0.875rem;
    min-height: 220px;
    outline: none;
    line-height: 1.7;
    color: inherit;
    font-size: inherit;
    border-radius: 0 0 0.75rem 0.75rem;
    transition: all 0.2s ease;
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
    touch-action: manipulation;
}

.rte-content:focus {
    outline: none !important;
}

.rte-content:empty::before {
    content: "Start typing...";
    color: #94a3b8;
    font-style: italic;
    pointer-events: none;
    opacity: 0.7;
}

/* Image focus styles */
.rte-content img:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Make images responsive in editor by default (only when no explicit dimensions are set) */
.rte-content img:not([style*="width"]):not([width]) {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent text selection during resize */
.rte-content.resizing {
    user-select: none;
    -webkit-user-select: none;
}

/* Editor Resize Handle */
.rte-editor-resize-handle {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    cursor: ns-resize;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    touch-action: none;
    color: #6b7280;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.rte-editor-resize-handle svg {
    display: block;
    pointer-events: none;
}

.rte-editor-resize-handle:hover {
    opacity: 0.75;
    background: transparent;
    border: none;
}

.rte-editor-resize-handle:active {
    opacity: 1;
    background: transparent;
    border: none;
}

.rte-editor-resize-handle:focus {
    outline: none;
    box-shadow: none;
}

.zauber-rte.rte-theme-dark .rte-editor-resize-handle {
    color: #9ca3af;
    opacity: 0.6;
}

/* Drop Zone */
.rte-drop-zone {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.1);
    border: 2px dashed #3b82f6;
    border-radius: 0.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-weight: 500;
    pointer-events: none;
}

.rte-editor-container:hover .rte-drop-zone {
    display: flex;
}

/* ===== Source View ===== */
.rte-source-view {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: none;
    outline: none;
    background: inherit;
    color: inherit;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    resize: vertical;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rte-source-view:focus {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
}

.zauber-rte.rte-theme-dark .rte-source-view {
    background: #1f2937;
    color: #f9fafb;
}

/* ===== Slide-out Panels ===== */
.rte-slideout-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
}

.rte-slideout-panel {
    margin-left: auto;
    width: 800px;
    max-width: 95vw;
    height: 100%;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.zauber-rte.rte-theme-dark .rte-slideout-panel {
    background: #1f2937;
    color: #f9fafb;
}

.rte-slideout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.zauber-rte.rte-theme-dark .rte-slideout-header {
    border-color: #374151;
}

.rte-slideout-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.zauber-rte.rte-theme-dark .rte-slideout-title {
    color: #f9fafb;
}

.rte-slideout-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rte-slideout-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.zauber-rte.rte-theme-dark .rte-slideout-close:hover {
    background: #374151;
    color: #f9fafb;
}

.rte-slideout-close svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.rte-slideout-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* ===== Panel Forms ===== */
.rte-panel-content {
    padding: 0;
}

.rte-form-group {
    margin-bottom: 1.25rem;
}

.rte-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.zauber-rte.rte-theme-dark .rte-label {
    color: #e5e7eb;
}

.rte-input,
.rte-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
    color: #374151;
    transition: all 0.15s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.rte-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.rte-input:hover,
.rte-select:hover {
    border-color: #9ca3af;
}

.rte-input:focus,
.rte-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rte-input::placeholder {
    color: #9ca3af;
}

.zauber-rte.rte-theme-dark .rte-input,
.zauber-rte.rte-theme-dark .rte-select {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.zauber-rte.rte-theme-dark .rte-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f9fafb' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Panel Actions */
.rte-panel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.zauber-rte.rte-theme-dark .rte-panel-actions {
    border-color: #374151;
}

/* ===== Buttons ===== */
.rte-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.625rem 1.25rem !important;
    border: 1px solid transparent !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    font-family: inherit !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

.rte-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.rte-btn-primary {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6 !important;
}

.rte-btn-primary:hover:not(:disabled) {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

.rte-btn-secondary {
    background: white !important;
    color: #374151 !important;
    border-color: #d1d5db !important;
}

.rte-btn-secondary:hover:not(:disabled) {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
}

.zauber-rte.rte-theme-dark .rte-btn-secondary {
    background: #374151 !important;
    color: #f9fafb !important;
    border-color: #4b5563 !important;
}

.zauber-rte.rte-theme-dark .rte-btn-secondary:hover:not(:disabled) {
    background: #4b5563 !important;
}

/* ===== Portal Dark Theme (for panels moved to document.body) ===== */
.rte-slideout-overlay.rte-theme-dark .rte-slideout-panel {
    background: #1f2937;
    color: #f9fafb;
}

.rte-slideout-overlay.rte-theme-dark .rte-slideout-header {
    border-color: #374151;
}

.rte-slideout-overlay.rte-theme-dark .rte-slideout-title {
    color: #f9fafb;
}

.rte-slideout-overlay.rte-theme-dark .rte-slideout-close:hover {
    background: #374151;
    color: #f9fafb;
}

.rte-slideout-overlay.rte-theme-dark .rte-label {
    color: #e5e7eb;
}

.rte-slideout-overlay.rte-theme-dark .rte-input,
.rte-slideout-overlay.rte-theme-dark .rte-select {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.rte-slideout-overlay.rte-theme-dark .rte-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f9fafb' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.rte-slideout-overlay.rte-theme-dark .rte-panel-actions {
    border-color: #374151;
}

.rte-slideout-overlay.rte-theme-dark .rte-btn-secondary {
    background: #374151 !important;
    color: #f9fafb !important;
    border-color: #4b5563 !important;
}

.rte-slideout-overlay.rte-theme-dark .rte-btn-secondary:hover:not(:disabled) {
    background: #4b5563 !important;
}

/* ===== Image Resize Handles ===== */
.rte-image-resize-handles {
    position: absolute;
    pointer-events: none;
    z-index: 1000;
}

.rte-resize-handle {
    position: fixed;
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rte-resize-handle:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* Corner-specific cursors */
.rte-resize-handle-nw { cursor: nw-resize; }
.rte-resize-handle-n { cursor: n-resize; }
.rte-resize-handle-ne { cursor: ne-resize; }
.rte-resize-handle-e { cursor: e-resize; }
.rte-resize-handle-se { cursor: se-resize; }
.rte-resize-handle-s { cursor: s-resize; }
.rte-resize-handle-sw { cursor: sw-resize; }
.rte-resize-handle-w { cursor: w-resize; }

/* Selected image styling */
img.rte-image-selected {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .rte-slideout-panel {
        width: 600px;
    }
}

@media (max-width: 768px) {
    .rte-toolbar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .rte-toolbar-row {
        border-right: none !important;
        padding-right: 0 !important;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }
    
    .rte-toolbar-row:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .rte-toolbar-btn {
        width: 2.75rem !important;
        height: 2.75rem !important;
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
        max-width: 2.75rem !important;
        max-height: 2.75rem !important;
    }

    .rte-editor-resize-handle {
        width: 50px;
        height: 30px;
    }

    .rte-content {
        padding: 1rem;
        font-size: 16px;
        line-height: 1.6;
    }
    
    .rte-source-view {
        font-size: 16px !important;
    }

    .rte-slideout-panel {
        width: 100%;
        max-width: 100vw;
    }

    .rte-btn {
        padding: 0.75rem 1.25rem !important;
        min-height: 44px !important;
    }

    .rte-resize-handle {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 640px) {
    .rte-toolbar-row {
        justify-content: space-between;
    }
}

/* ===== New Flexible Layout System ===== */

/* Toolbar Blocks */
.rte-toolbar-block {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.125rem !important;
    align-items: center !important;
}

/* Toolbar Separators */
.rte-toolbar-separator {
    width: 1px !important;
    height: 2rem !important;
    background: rgba(0, 0, 0, 0.1) !important;
    margin: 0 0.5rem !important;
}

.rte-theme-dark .rte-toolbar-separator {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Single Item Wrapper */
.rte-toolbar-single-item {
    display: flex !important;
    align-items: center !important;
}

/* ===== Dropdown Styles ===== */

.rte-toolbar-dropdown {
    position: relative !important;
    display: inline-block !important;
}

.rte-dropdown-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    min-width: auto !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 0.5rem !important;
    white-space: nowrap !important;
}

.rte-dropdown-label {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.rte-dropdown-caret {
    font-size: 0.625rem !important;
    margin-left: 0.125rem !important;
    transition: transform 0.2s ease !important;
}

.rte-dropdown-open .rte-dropdown-caret {
    transform: rotate(180deg) !important;
}

/* Dropdown Menu */
.rte-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 0.25rem) !important;
    left: 0 !important;
    min-width: 12rem !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    z-index: 1000 !important;
    padding: 0.25rem !important;
    max-height: 20rem !important;
    overflow-y: auto !important;
}

.rte-theme-dark .rte-dropdown-menu {
    background: #1e293b !important;
    border-color: #334155 !important;
}

/* Dropdown Items */
.rte-dropdown-item,
.rte-dropdown-label-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0.5rem 0.75rem !important;
    border: none !important;
    border-radius: 0.375rem !important;
    background: transparent !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-align: left !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
    font-weight: 400 !important;
}

.rte-dropdown-label-item {
    font-weight: 600 !important;
    color: #334155 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    margin-bottom: 0.25rem !important;
    cursor: pointer !important;
}

.rte-theme-dark .rte-dropdown-label-item {
    color: #f1f5f9 !important;
    border-bottom-color: #334155 !important;
}

.rte-dropdown-item:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}

.rte-theme-dark .rte-dropdown-item {
    color: #e2e8f0 !important;
}

.rte-theme-dark .rte-dropdown-item:hover {
    background: #334155 !important;
    color: #f8fafc !important;
}

.rte-dropdown-item-active {
    background: #eff6ff !important;
    color: #2563eb !important;
    font-weight: 500 !important;
}

.rte-theme-dark .rte-dropdown-item-active {
    background: #1e3a8a !important;
    color: #93c5fd !important;
}

.rte-dropdown-item:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.rte-dropdown-check {
    font-size: 0.75rem !important;
    color: #2563eb !important;
    margin-left: 0.5rem !important;
}

.rte-theme-dark .rte-dropdown-check {
    color: #93c5fd !important;
}

/* Dropdown Item Label */
.rte-dropdown-item-label {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.rte-dropdown-item-label i {
    font-size: 0.875rem !important;
}

/* Optional: Heading-specific styling (users can customize or remove) */
/* Style heading items with visual hierarchy */
.rte-dropdown-h1 .rte-dropdown-item-label {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

.rte-dropdown-h2 .rte-dropdown-item-label {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
}

.rte-dropdown-h3 .rte-dropdown-item-label {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.rte-dropdown-h4 .rte-dropdown-item-label {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
}

.rte-dropdown-h5 .rte-dropdown-item-label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}

.rte-dropdown-h6 .rte-dropdown-item-label {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
}