.note {
    min-width: 20rem;
    max-width: 50rem;
    width: 80%;
    margin: 20px auto;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
    text-align: left;
}

#noteForm {
    width: 85%;
}

.note-form {
    margin-bottom: 15px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

.note-form textarea {
    width: calc(100% - 16px);
    padding: 8px;
    border: 1px solid #000;
    border-radius: 3px;
    margin: 3px 0;
    background-color: #fff;
    height: 150px;
}

.note-form input[type="text"] {
    width: 100%;
    margin-bottom: 5px;
}

.note-form button[type="submit"] {
    display: block;
    margin: 10px auto;
}

.note h3 {
    text-align: center;
}

.notes-page-container {
    width: 80%;
    margin: 20px auto;
}

.all-notes-container {
    margin-top: 20px;
}

.note-image {
    max-width: 100%;
    height: 3rem;
    width: 3rem;
    margin: 1rem;
    margin-left: 0;
}

.note-body img{
    height: auto;
    width: 24rem;
    max-width: 95%;
}

.note-footer {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    width: 100%;
}

.note-footer-info {
    display: flex;
    flex-direction: row;
}

.note-footer-address {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.note-actions {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.note-buttons {
    display: flex;
    justify-content:flex-end;
    gap: 8px;
    margin-top: 10px;
}

.note-button {
    padding: 0;
    border-radius: 3px;
    background-color: white;
}

.note-button-icon {
    width: 2rem;
    height: 2rem;
    border: none;
    margin: 0;
    padding: 0;
}

.note-button:hover {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.note-button:active {
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}


.all-notes-container .note {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
}

#editor {
    border: 1px solid #ccc;
    margin-top: 5px;
    font-family: Arial, sans-serif;
    padding: 5px;
}

.ql-toolbar {
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    padding: 3px;
}

.ql-editor {
    background-color: white;
}

.ql-formats {
    border-right: 1px solid #ccc;
    padding-right: 3px;
    margin-right: 3px;
}

.ql-formats:last-child {
    border-right: none;
}

.ql-formats button {
    border: 1px solid #bbb;
    background-color: #ddd;
    padding: 2px 4px;
    margin: 1px;
    border-radius: 2px;
    font-size: 12px;
}

.ql-formats button.ql-active {
    background-color: #bbb;
}


.ql-editor p,
.ql-editor div,
.ql-editor span {
    text-align: left;
    direction: ltr;
}

.ql-size-small {
    font-size: 0.6em;
}

.ql-size-large {
    font-size: 1.5em;
}

.ql-size-huge {
    font-size: 2em;
}

.ql-align-right {
    text-align: right;
}

.ql-direction-rtl {
    direction: rtl;
}

.ql-code-block-container {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    overflow-x: auto;
}

.ql-code-block {
    font-family: monospace;
    white-space: pre-wrap;
    margin: 0;
}

blockquote {
    border-left: 3px solid #ccc;
    margin: 10px 0;
    padding-left: 10px;
    font-style: italic;
    color: #666;
}


/* --- ESTILOS PARA EDIÇÃO IN-LOCO --- */

.note-edit-form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espaçamento entre os elementos */
}

.edit-title-input {
    width: 100%;
    font-size: 1.5em; /* Tamanho similar ao h3 */
    font-weight: bold;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 5px;
    box-sizing: border-box; /* Garante que o padding não aumente a largura total */
}

/* O container do Quill durante a edição */
.edit-quill-container {
    min-height: 150px;
    background-color: #fff;
}

/* Container para os botões de salvar/cancelar */
.edit-actions {
    display: flex;
    justify-content: flex-end; /* Alinha os botões à direita */
    gap: 10px;
}

.edit-actions button {
    padding: 8px 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-weight: bold;
}

.edit-actions .save-btn {
    background-color: #28a745; /* Verde */
    color: white;
    border-color: #28a745;
}

.edit-actions .cancel-btn {
    background-color: #f0f0f0; /* Cinza claro */
    color: #333;
}