﻿/* Estilos para conteúdo do Quill Editor */
.ql-editor {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    padding: 0;
    margin: 0;
}

    .ql-editor p {
        margin: 0 0 1rem 0;
        line-height: 1.6;
    }

        .ql-editor p:last-child {
            margin-bottom: 0;
        }

/* Alinhamentos */
.ql-align-left {
    text-align: left;
}

.ql-align-center {
    text-align: center;
}

.ql-align-right {
    text-align: right;
}

.ql-align-justify {
    text-align: justify;
}

/* Blockquotes */
.ql-editor blockquote {
    border-left: 4px solid #6c757d; /* cinza */
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    font-style: italic;
    color: #495057;
    border-radius: 0 4px 4px 0;
}

    .ql-editor blockquote p {
        margin: 0;
    }

/* Listas */
.ql-editor ol,
.ql-editor ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

    .ql-editor ol li,
    .ql-editor ul li {
        margin: 0.5rem 0;
        line-height: 1.6;
    }

.ql-editor ol {
    list-style-type: decimal;
}

.ql-editor ul {
    list-style-type: disc;
}

/* Títulos */
.ql-editor h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    color: #212529;
}

.ql-editor h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 1.75rem 0 1rem 0;
    color: #212529;
}

.ql-editor h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    color: #212529;
}

.ql-editor h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.25rem 0 1rem 0;
    color: #212529;
}

.ql-editor h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.1rem 0 1rem 0;
    color: #212529;
}

.ql-editor h6 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 1rem 0;
    color: #212529;
}

/* Formatação de texto */
.ql-editor strong {
    font-weight: 700;
}

.ql-editor em {
    font-style: italic;
}

.ql-editor u {
    text-decoration: underline;
}

.ql-editor s {
    text-decoration: line-through;
}

/* Links */
.ql-editor a {
    color: #007bff;
    text-decoration: none;
}

    .ql-editor a:hover {
        color: #0056b3;
        text-decoration: underline;
    }

/* Código */
.ql-editor code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    color: #e83e8c;
}

.ql-editor pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}

    .ql-editor pre code {
        background-color: transparent;
        padding: 0;
        color: #212529;
    }

/* Tabelas */
.ql-editor table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

    .ql-editor table td,
    .ql-editor table th {
        border: 1px solid #dee2e6;
        padding: 0.75rem;
        text-align: left;
    }

    .ql-editor table th {
        background-color: #f8f9fa;
        font-weight: 600;
    }

/* Imagens */
.ql-editor img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 4px;
}

/* Divisores */
.ql-editor hr {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 2rem 0;
}

/* Espaçamento específico para primeiro elemento */
.ql-editor > *:first-child {
    margin-top: 0;
}

/* Espaçamento específico para último elemento */
.ql-editor > *:last-child {
    margin-bottom: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .ql-editor {
        font-size: 15px;
    }

        .ql-editor h1 {
            font-size: 1.75rem;
        }

        .ql-editor h2 {
            font-size: 1.5rem;
        }

        .ql-editor h3 {
            font-size: 1.25rem;
        }

        .ql-editor blockquote {
            margin: 1rem 0;
            padding: 0.75rem 1rem;
        }

        .ql-editor ol,
        .ql-editor ul {
            padding-left: 1.5rem;
        }
}
