/* Modern Admin Editor Styles */

/* Editor Content Typography */
.article-editor-content h2 {
    font-size: 1.875rem;
    /* 3xl */
    line-height: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid #3b82f6;
    /* primary-500 */
    background: linear-gradient(to right, #f0f9ff, transparent);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.article-editor-content h3 {
    font-size: 1.5rem;
    /* 2xl */
    line-height: 2rem;
    font-weight: 700;
    color: #334155;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.25rem;
}

.article-editor-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #475569;
}

.article-editor-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-editor-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-editor-content blockquote {
    font-style: italic;
    border-left: 4px solid #cbd5e1;
    padding-left: 1rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}

/* Custom Scrollbar for Editor Area */
#editor-main-area::-webkit-scrollbar {
    width: 8px;
}

#editor-main-area::-webkit-scrollbar-track {
    background: transparent;
}

#editor-main-area::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
    border: 3px solid transparent;
    background-clip: content-box;
}

#editor-main-area::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* H2/H3 Button Active States in Toolbar */
.editor-toolbar button.active-format {
    background-color: #eff6ff;
    color: #2563eb;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Modal Transitions override for nicer slide */
#article-modal {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#article-modal.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
}

#article-modal:not(.hidden) {
    opacity: 1;
    transform: scale(1);
    display: flex !important;
    /* Force flex when visible */
}