.editor-modal { background: rgba(0,0,0,0.7); padding: 20px; border-radius: 8px; border: 1px solid var(--accent); }
.editor-title { color: var(--accent); margin-bottom: 15px; }
.form-label { display: block; margin-bottom: 5px; color: var(--text-main); }
.input-dark { width: 100%; padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--border-muted); background: var(--backdrop-dark); color: var(--text-main); }
.input-dark,
input,
select,
textarea,
button {
    font-family: var(--font-family-main, "Inter", system-ui, sans-serif);
}

.editor-content { 
    min-height: 200px; 
    border: 1px solid var(--border-muted); 
    background: var(--backdrop-dark); 
    color: var(--text-main); 
    padding: 10px; 
    border-radius: var(--radius-sm); 
    overflow-y: auto;
    font-family: var(--font-family-main, 'Inter', sans-serif);
    font-size: 16px;
    line-height: 1.5;
}

/* Tvinga font på alla element inuti editorn för att överskugga eventuella inline-styles från paste */
.editor-content * {
    font-family: var(--font-family-main, 'Inter', sans-serif) !important;
    background-color: transparent !important; /* Rensa bakgrundsfärg från paste */
    color: inherit; /* Låt textfärg ärvas om inte annat anges */
    font-size: inherit; /* Nollställ fontstorlek */
}

/* Återställ specifika element som behöver egen stil */
.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6 {
    color: var(--accent) !important;
    font-weight: bold !important;
}

.editor-content ul, .editor-content ol {
    margin-left: 20px;
    list-style-position: inside;
}

.editor-content h2, .editor-content h3 {
    color: var(--accent);
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1.25em;
    border-bottom: 1px solid var(--accent-a-20);
    padding-bottom: 4px;
}
.btn-secondary { background: var(--gray-666); color: var(--white); border: none; padding: 8px; border-radius: var(--radius-sm); cursor: pointer; }
.btn-danger { background: #f44336; color: var(--white); border: none; padding: 8px; border-radius: var(--radius-sm); cursor: pointer; }
