/* Estilos personalizados para a página de edição */

/* Animações suaves */
.transition-all {
    transition: all 0.2s ease;
}

/* Estilização do Summernote */
.note-editor.note-frame {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    width: 100% !important;
    max-width: 100% !important;
}

.note-editor.note-frame .note-editing-area,
.note-editor.note-frame .note-editable {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 600px !important;
}

.note-editor.note-frame .note-editable {
    background-color: #ffffff;
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.note-editor.note-frame .note-toolbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem;
    width: 100% !important;
}

.note-editor.note-frame .note-statusbar {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    width: 100% !important;
}

.note-editor .note-toolbar .note-btn-group {
    margin: 0 3px;
}

.note-editor .note-toolbar .note-btn {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    padding: 0.35rem;
    color: #4b5563;
    transition: all 0.2s ease;
}

.note-editor .note-toolbar .note-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.note-editor .note-toolbar .note-btn.active {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

/* Estilização dos dropdowns do editor */
.note-editor .note-dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.note-editor .note-dropdown-item {
    padding: 0.35rem 0.75rem;
    color: #4b5563;
    font-size: 0.875rem;
}

.note-editor .note-dropdown-item:hover {
    background-color: #f9fafb;
}

/* Estilização da área de edição */
.note-editable {
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
}

.note-editable p {
    margin-bottom: 0.75rem;
}

.note-editable h1, .note-editable h2, .note-editable h3, 
.note-editable h4, .note-editable h5, .note-editable h6 {
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Inputs e campos de texto */
input, textarea {
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Botões */
.btn-ia, button[type="submit"] {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.btn-ia:hover, button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Status toggle */
.status-toggle label {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f9fafb;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Modo fullscreen */
.note-editor.note-frame.fullscreen {
    background-color: #ffffff;
}

.note-editor.note-frame.fullscreen .note-editable {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    box-shadow: none;
}

/* Responsividade */
@media (max-width: 1024px) {
    .note-editor.note-frame .note-editing-area,
    .note-editor.note-frame .note-editable {
        min-height: 400px !important;
    }
}
