
.cke-content {
    font-family: Arial, sans-serif !important;
    line-height: 1.6 !important;
    color: #212529;
    font-size: 1rem;
}

/* Parágrafos */
.cke-content p {
    margin-bottom: 1em;
    line-height: 1 !important;
}

/* Títulos */
.cke-content h1,
.cke-content h2,
.cke-content h3,
.cke-content h4,
.cke-content h5,
.cke-content h6 {
    margin-bottom: 0.5em;
    font-weight: bold;
    line-height: 1.25;
}

/* Listas */
.cke-content ul,
.cke-content ol {
    padding-left: 2em;
    margin-bottom: 1em;
}

.cke-content li {
    margin-bottom: 0.5em;
}

/* Negrito e itálico */
.cke-content strong,
.cke-content b {
    font-weight: bold;
}

.cke-content em,
.cke-content i {
    font-style: italic;
}

/* Links */
.cke-content a {
    color: #0d6efd;
    text-decoration: underline;
}

.cke-content a:hover {
    color: #0a58ca;
    text-decoration: none;
}

/* Tabelas */
.cke-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.cke-content table td,
.cke-content table th {
    border: 1px solid #dee2e6;
    padding: 0.75em;
    text-align: left;
}

.cke-content table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Citações */
.cke-content blockquote {
    padding: 1em;
    margin: 1.5em 0;
    border-left: 4px solid #ccc;
    background-color: #f9f9f9;
    font-style: italic;
}

/* Imagens */
.cke-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em 0;
}

/* Blocos de código */
.cke-content pre {
    background-color: #f8f9fa;
    padding: 1em;
    overflow-x: auto;
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.9em;
}

.cke-content code {
    background-color: #f1f1f1;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.95em;
}

/* Vídeos e iframes */
.cke-content iframe,
.cke-content video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em 0;
}

/* Modo escuro automático */
@media (prefers-color-scheme: dark) {
    .cke-content {
        background-color: transparent;
    }

    .cke-content a {
        color: #66b2ff;
    }

    .cke-content table th {
        background-color: #333;
        color: #fff;
    }

    .cke-content table td,
    .cke-content table th {
        border-color: #555;
    }

    .cke-content blockquote {
        background-color: #2c2c2c;
        border-left-color: #555;
    }

    .cke-content pre {
        background-color: #2d2d2d;
        color: #ccc;
    }

    .cke-content code {
        background-color: #3a3a3a;
        color: #f8f8f2;
    }
}
