/* Importação da fonte do Google para ícones */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary-color: #4A90E2;
    --secondary-color: #F0F2F5;
    --text-color: #333;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
    --note-font: 'Roboto', sans-serif;
    --main-font: 'Roboto', sans-serif;
    --header-bg: rgba(255, 255, 255, 0.85); /* Header ligeiramente transparente */
    --header-blur: blur(10px);

    /* Cores de nota, agora apenas para fins de referência */
    --note-color-1: #FFECB3;
    --note-color-2: #B3E5FC;
    --note-color-3: #C8E6C9;
    --note-color-4: #FFCDD2;
}

/* === Estrutura Geral e Barra de Rolagem === */
html, body {
    height: 100%;
    margin: 0;
    font-family: var(--main-font);
    background-color: var(--secondary-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

.main-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 86px;
    -webkit-overflow-scrolling: touch;
}

::-webkit-scrollbar {
    width: 6px; /* Scrollbar mais fino */
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* === 1. Header (Topo fixo) === */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 60px; /* Mais baixo e moderno */
    background-color: var(--header-bg);
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Sombra ainda mais sutil */
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Borda inferior bem suave */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-left {
    gap: 8px; /* Espaçamento menor */
}

.avatar-container {
    width: 32px; /* Menor */
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}

.header-center {
    flex-grow: 1;
    text-align: center;
    min-width: 0;
}

.header-title {
    font-size: 1.3rem; /* Ligeiramente menor */
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-subtitle {
    font-size: 0.7rem;
    color: #888;
    margin: 0;
}

.header-right {
    gap: 8px; /* Menor espaçamento */
    position: relative;
}

.header-right .icon {
    font-size: 20px; /* Menor */
    color: #666;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.header-right .icon:hover {
    color: var(--primary-color);
    transform: scale(1.03); /* Efeito hover ainda mais sutil */
}

.user-info {
    display: flex;
    align-items: center;
    gap: 6px; /* Menor espaçamento */
    cursor: pointer;
    position: relative;
}

.user-info img {
    width: 28px; /* Menor */
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--primary-color);
    transition: transform 0.2s;
}

.user-info img:hover {
    transform: scale(1.03); /* Efeito hover sutil */
}

.user-info span {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.8rem; /* Menor */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px; /* Largura máxima menor */
}

.user-menu {
    position: absolute;
    top: 38px; /* Mais perto do ícone */
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px; /* Bordas mais suaves */
    padding: 5px 0;
    display: none;
    min-width: 120px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Sombra ainda mais sutil */
    z-index: 100;
    flex-direction: column;
}

.user-menu.show {
    display: flex;
}

.user-menu button {
    padding: 8px 12px;
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
    font-size: 0.8rem;
}

.user-menu button:hover {
    background-color: #f0f0f0;
}

/* === 2. Barras de Busca === */
.search-bar-section {
    padding: 16px;
}

.search-container {
    position: relative;
    margin: 0 16px;
}

.search-container-saved {
    margin: 16px 0;
}

#search-notes, #search-notes-saved {
    width: 100%;
    height: 40px; /* Mais baixo */
    padding: 0 15px;
    padding-left: 40px; /* Ajustei o padding esquerdo */
    border: 1px solid var(--border-color);
    border-radius: 20px; /* Mais arredondado */
    font-size: 0.8rem;
    outline: none;
    transition: box-shadow 0.3s, border-color 0.3s;
    background-color: var(--card-bg);
    color: var(--text-color);
    box-sizing: border-box;
}

#search-notes:focus, #search-notes-saved:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 4px rgba(74, 144, 226, 0.3); /* Sombra mais suave */
}

.search-icon {
    position: absolute;
    left: 12px; /* Ajustei a posição do ícone */
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 16px; /* Menor */
}


/* === 3. Área de Ações Rápidas === */
.quick-actions {
    padding: 0 16px;
    margin-bottom: 16px; /* Reduzi um pouco a margem */
}

.quick-actions-row {
    display: flex;
    gap: 3%; /* Ligeiramente menor */
    margin-bottom: 12px; /* Reduzi um pouco a margem */
    flex-wrap: wrap;
}

.action-card {
    background-color: var(--card-bg);
    border-radius: 6px; /* Mais suaves */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* Sombra ainda mais sutil */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 8px; /* Menor padding */
    box-sizing: border-box;
}

.action-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Sombra mais sutil no hover */
}

.large-card {
    width: 48.5%; /* Ajustei um pouco a largura */
    height: 80px; /* Mais baixo */
    font-weight: 500; /* Peso da fonte um pouco menor */
    font-size: 0.9rem;
}

.small-cards-row {
    justify-content: space-between;
    gap: 0;
}

.small-card {
    width: 23%; /* Ajustei um pouco a largura */
    height: 60px; /* Mais baixo */
    flex-direction: column;
    gap: 3px; /* Menor espaço */
}

.small-card .material-symbols-outlined {
    font-size: 20px;
    color: var(--primary-color);
}

.small-card span {
    font-size: 0.7rem;
}

/* === 4. Bloco de Rascunhos === */
.draft-block {
    padding: 0 16px;
    margin-bottom: 16px; /* Reduzi um pouco */
}

.draft-title {
    font-size: 1rem; /* Menor */
    font-weight: 500; /* Mais leve */
    margin-bottom: 8px; /* Menor margem */
}

.draft-editor {
    min-height: 80px; /* Mais baixo */
    background-color: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 6px; /* Menor padding */
}

/* === 5. Navigation Bar (Rodapé fixo) === */
.navigation-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55px; /* Ainda mais baixo */
    background-color: var(--header-bg);
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur);
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.08); /* Sombra ainda mais sutil */
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Borda superior bem suave */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
    flex: 1;
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item.active {
    color: var(--primary-color);
    font-weight: 500; /* Mais leve */
}

.nav-item .material-symbols-outlined {
    font-size: 18px; /* Menor */
}

.nav-label {
    font-size: 0.6rem;
    margin-top: 2px;
}

/* Estilos de funcionalidade de notas */
.notes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); /* Notas um pouco mais estreitas */
    gap: 12px; /* Menor espaço */
    padding: 16px;
}

.note {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 6px; /* Mais suaves */
    padding: 12px; /* Menor padding interno */
    position: relative;
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.03); /* Sombra ainda mais sutil */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-left 0.3s;
    font-family: var(--note-font);
    font-size: 0.9rem; /* Menor */
    line-height: 1.3;
    min-height: 100px; /* Menor altura mínima */
    overflow: hidden;
    word-wrap: break-word;
    cursor: pointer;
}

.note.pinned {
    box-shadow: 0 0 4px rgba(74, 144, 226, 0.3); /* Sombra mais suave */
    border: 1px solid var(--primary-color);
    border-left: 5px solid var(--primary-color);
}

.note.color-1,
.note.color-2,
.note.color-3,
.note.color-4 {
    /* Vazio */
}

.note:hover {
    transform: translateY(-1px) rotate(-0.2deg); /* Efeito hover ainda mais sutil */
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05); /* Sombra mais sutil no hover */
}

.note .note-content {
    font-family: var(--main-font);
    font-size: 0.8rem; /* Menor */
    max-height: 150px; /* Menor altura máxima */
    overflow: hidden;
    position: relative;
    padding-bottom: 12px; /* Menor padding inferior */
}

.note .note-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px; /* Menor altura do gradiente */
    background: linear-gradient(to top, var(--card-bg), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.note .note-actions {
    position: absolute;
    top: 6px; /* Ajustei a posição */
    right: 6px; /* Ajustei a posição */
    display: flex;
    gap: 2px; /* Ainda menor */
}

.note button {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 3px; /* Ainda mais suaves */
    cursor: pointer;
    font-size: 0.6rem; /* Ainda menor */
    opacity: 0.5; /* Opacidade ainda mais baixa */
    padding: 3px 5px; /* Ainda menor */
    transition: opacity 0.2s, background-color 0.2s;
}

.note button:hover {
    opacity: 1;
    background-color: #fff;
}

/* === MODAL CONFIRMAÇÃO / VISUALIZAÇÃO === */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Ligeiramente mais claro */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px; /* Menor padding */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); /* Sombra mais sutil */
    text-align: center;
    width: 90%;
    max-width: 350px; /* Largura máxima menor */
    transform: scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-backdrop.show .modal-content {
    transform: scale(1);
}

#close-view-modal {
    position: absolute;
    top: 6px; /* Ajustei a posição */
    right: 6px; /* Ajustei a posição */
    background-color: transparent;
    border: none;
    font-size: 1.6rem; /* Menor */
    font-weight: 300;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
    padding: 2px; /* Menor padding */
    transition: color 0.2s;
}

#close-view-modal:hover {
    color: #E53935;
}

.modal-content h3 {
    font-family: var(--note-font);
    font-size: 1.4rem; /* Menor */
    color: var(--primary-color);
    margin-bottom: 6px; /* Menor margem */
}

.modal-content p {
    margin-bottom: 12px; /* Menor margem */
    font-size: 0.8rem; /* Menor */
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 6px; /* Menor espaço */
}

.btn-confirm,
.btn-cancel,
.btn-edit,
.btn-close {
    padding: 6px 12px; /* Menor padding */
    border: none;
    border-radius: 4px; /* Mais suaves */
    font-weight: 500; /* Mais leve */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 0.8rem; /* Menor */
}

.btn-confirm {
    background-color: #E57373;
    color: #fff;
}

.btn-confirm:hover {
    background-color: #D32F2F;
    transform: translateY(-1px);
}

.btn-cancel {
    background-color: #BDBDBD;
    color: #333;
}

.btn-cancel:hover {
    background-color: #9E9E9E;
    transform: translateY(-1px);
}

.btn-edit {
    background-color: #B3E5FC;
    color: var(--text-color);
}

.btn-edit:hover {
    background-color: #81D4FA;
    transform: translateY(-1px);
}

.btn-close {
    background-color: #BDBDBD;
    color: var(--text-color);
}

.btn-close:hover {
    background-color: #9E9E9E;
    transform: translateY(-1px);
}

/* Modal de visualização de nota */
#view-modal-content {
    text-align: left;
    max-height: 70vh;
    overflow-y: auto;
    font-family: var(--main-font);
    font-size: 0.8rem; /* Menor */
    line-height: 1.4; /* Menor */
}

#view-modal .modal-content {
    max-width: 600px; /* Largura máxima menor */
    width: 90%;
    text-align: left;
}

#view-modal .modal-actions {
    margin-top: 12px; /* Menor margem */
    justify-content: flex-end;
}

/* === FULLSCREEN === */
body.no-scroll {
    overflow: hidden;
}

.editor-section.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    z-index: 9999;
    padding: 12px; /* Menor padding */
    display: flex;
    flex-direction: column;
    gap: 6px; /* Menor espaço */
}

.editor-section.fullscreen #editor {
    flex-grow: 1;
    height: auto;
}

.editor-section.fullscreen .ql-container {
    height: 100%;
}

.editor-section.fullscreen .ql-editor {
    height: 100%;
}

.editor-section.fullscreen .saved-notes-section,
.editor-section.fullscreen .editor-header {
    display: flex;
}

.editor-section:not(.fullscreen) .editor-header {
    display: flex;
}

.editor-section.fullscreen + .notes-container {
    display: none;
}

/* === ANIMAÇÃO === */
@keyframes fade-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.note.new {
    animation: fade-in 0.5s ease;
}

/* === RESPONSIVIDADE === */
@media (max-width: 600px) {
    .container { padding: 12px; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.2rem; }
    .notes-container { grid-template-columns: 1fr; }
    .user-info { top: 6px; right: 6px; }
    .editor-header { flex-direction: column; align-items: stretch; }
    .search-bar { width: 100%; }

    /* Ajuste para as Ações Rápidas em telas pequenas */
    .quick-actions-row {
        flex-direction: column;
        gap: 10px; /* Menor espaço */
    }

    .large-card, .small-card {
        width: 100%;
        height: 50px; /* Ainda mais baixo */
        flex-direction: row;
        gap: 8px; /* Menor espaço */
        justify-content: flex-start;
        padding-left: 12px; /* Menor padding */
        box-sizing: border-box;
        font-size: 0.8rem; /* Ainda menor */
    }

    .small-card .material-symbols-outlined {
        font-size: 18px;
    }
}

/* === LOGIN / CADASTRO === */
.login-container {
    max-width: 320px; /* Ainda menor */
    margin: 40px auto; /* Ajustei a margem */
    background: var(--card-bg);
    padding: 20px; /* Menor padding */
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15); /* Sombra mais sutil */
    text-align: center;
    animation: fade-in 0.6s ease;
}

.login-container h1 {
    font-family: var(--note-font);
    font-size: 1.6rem; /* Ainda menor */
    color: var(--primary-color);
    margin-bottom: 6px; /* Menor margem */
}

.login-container p {
    margin-bottom: 12px; /* Menor margem */
    font-size: 0.8rem; /* Ainda menor */
    color: #666;
}

#auth-area {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Menor espaço */
}

#auth-area input {
    padding: 8px; /* Menor padding */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8rem; /* Ainda menor */
    font-family: var(--main-font);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

#auth-area input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 2px rgba(121, 85, 72, 0.4); /* Sombra ainda mais sutil */
}

#auth-area button {
    padding: 8px; /* Menor padding */
    border: none;
    border-radius: 4px;
    font-size: 0.8rem; /* Ainda menor */
    font-weight: 500; /* Mais leve */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#loginBtn {
    background-color: var(--primary-color);
    color: #fff;
}

#loginBtn:hover {
    background-color: #5D4037;
    transform: translateY(-1px);
}

#cadastrarBtn {
    background-color: #A1887F;
    color: #fff;
}

#cadastrarBtn:hover {
    background-color: #8D6E63;
    transform: translateY(-1px);
}

#loginGoogleBtn {
    background-color: #DB4437;
    color: #fff;
}

#loginGoogleBtn:hover {
    background-color: #B71C1C;
    transform: translateY(-1px);
}

#erroLogin {
    color: #E53935;
    font-size: 0.7rem; /* Ainda menor */
    margin-top: 6px; /* Menor margem */
}

#mensagemLogin {
    color: #388E3C;
    font-size: 0.7rem; /* Ainda menor */
    margin-top: 6px; /* Menor margem */
}

@media (max-width: 500px) {
    .login-container {
        margin: 30px 10px; /* Ajustei ainda mais */
        padding: 15px; /* Ajustei ainda mais */
    }
    .login-container h1 { font-size: 1.4rem; } /* Ajustei ainda mais */
}

/* === TOAST / ALERTA === */
.custom-alert {
    position: fixed;
    bottom: 15px; /* Mais perto da borda inferior */
    right: 15px; /* Mais perto da borda direita */
    background-color: #388E3C;
    color: #fff;
    padding: 8px 12px; /* Ainda menor */
    border-radius: 4px;
    font-weight: 500; /* Mais leve */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 9999;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15); /* Sombra ainda mais sutil */
    font-size: 0.7rem; /* Ainda menor */
}

.custom-alert.show {
    opacity: 1;
    transform: translateY(0);
}

.custom-alert.error {
    background-color: #E53935;
}

/* === Estilo para o Botão de Salvar Anotação === */
.btn-save-note {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-family: var(--main-font);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.btn-save-note:hover {
    background-color: #357ABD;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 16px 16px; /* Adicionei padding inferior */
}

.editor-header h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

.ql-toolbar.ql-snow {
    border: 1px solid var(--border-color);
    border-radius: 4px 4px 0 0;
    background-color: var(--card-bg);
}

.ql-container.ql-snow {
    border: 1px solid var(--border-color);
    border-radius: 0 0 4px 4px;
    background-color: var(--card-bg);
}

.fullscreen .ql-toolbar.ql-snow,
.fullscreen .ql-container.ql-snow {
    border: 1px solid var(--border-color);
}

/* ... seu CSS existente ... */

/* --- NOVOS ESTILOS PARA OS BOTÕES DE DOWNLOAD --- */

/* Estilos gerais para os botões dentro do modal */
.modal-actions {
    display: flex;
    justify-content: flex-end; /* Alinha os botões à direita */
    gap: 10px;
    margin-top: 15px; /* Adiciona um espaço acima dos botões */
    flex-wrap: wrap; /* Permite quebras de linha em telas pequenas */
}

/* Estilo para os botões de download */
.modal-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal-btn:hover {
    background-color: #357ABD;
    transform: translateY(-1px);
}

/* Estilo específico para o botão de edição */
.btn-edit {
    background-color: #B3E5FC; /* Cor azul clara */
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-edit:hover {
    background-color: #81D4FA; /* Cor azul um pouco mais escura no hover */
    transform: translateY(-1px);
}

/* Container que agrupa os dois blocos */
.draft-ia-container {
    display: flex;
    gap: 20px;
    width: 100%;
    /* Para que eles fiquem lado a lado e ocupem o mesmo espaço */
    align-items: stretch; /* Garante que os itens tenham a mesma altura */
    margin-bottom: 20px;
    /* Para torná-los fixos na tela, remova o `margin-bottom` e use `position: fixed`
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99;
    */
}

/* Blocos individuais (Rascunho e Sugestões da IA) */
.draft-block,
.ia-suggestions-block {
    flex: 1; /* Faz com que ambos ocupem o mesmo espaço disponível */
    display: flex;
    flex-direction: column;
    min-height: 350px; /* Define uma altura mínima para ambos */
    background-color: var(--card-bg); /* Use a variável do seu código */
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos para o editor dentro dos blocos */
.draft-editor,
.ia-suggestions-editor {
    flex-grow: 1;
    min-height: 250px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-y: auto; /* Adiciona rolagem se o conteúdo exceder a altura */
}

/* Títulos */
.draft-title,
.ia-suggestions-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

/* Layout responsivo para telas menores */
@media (max-width: 768px) {
    .draft-ia-container {
        flex-direction: column; /* Coloca os itens um embaixo do outro em telas pequenas */
        position: static; /* Remove a posição fixa em telas pequenas */
    }

    .draft-block,
    .ia-suggestions-block {
        height: auto;
        min-height: auto;
    }
}

/* Estilo para o botão de aceitar sugestão da IA */
.ia-suggestions-actions {
    margin-top: 15px;
    text-align: right;
}

.btn-accept-ai {
    background-color: #4CAF50; /* Um verde amigável */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.btn-accept-ai:hover {
    background-color: #45a049; /* Uma versão um pouco mais escura no hover */
}