* {
    font-family: "Roboto", sans-serif;
    margin: 0%;
    padding: 0%;
}

html,
body {
    height: 100%;
}

header {
    padding: 20px;
    margin-bottom: 0;
}

header div {
    display: flex;
    align-items: center;
}

header div .icon {
    font-size: 30px;
    color: #333446;
    padding: 0 7px;
}

header div .list:hover {
    color: black;
}


header div h1,
hr {
    color: #333446;
}

hr {
    border: none;
    border-top: 1px solid #ccc;
    margin-top: -15px;
}

main {
    display: flex;
}

@media (max-width: 600px) {
    header div {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
}

.sidebar {
    height: 100vh;
    width: 180px;
    background-color: #f3f2ea;
    padding: 0.5rem 1rem 1rem 0;
    transition: width 0.3s ease-in-out, padding 0.3s ease-in-out;
    overflow: hidden;

}

.sidebar.hidden {
    width: 0;
    padding: 0;
}

.content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

main nav {
    background-color: #F1F0E8;

}


main nav div {
    margin-top: 15px;
    width: 170px;
}

main nav div div {
    display: flex;
    padding: 12px;
    border-radius: 0 50px 50px 0;

}


main.centralizado {
    justify-content: center;
}

main.centralizado .controls {
    margin: 0 auto;
    max-width: 700px;
}

nav {
    transition: transform 0.3s ease;
}

nav.hidden {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: absolute;
    z-index: 10;
}

nav div .ativo {
    background-color: #7fbccc;
    font-weight: bold;
    color: #fff;
    box-shadow: inset 3px 0 0 #0077a3;
}

nav a {
    text-decoration: none;
    color: #333446;
    font-weight: bold;
}

nav a:hover {
    color: #7c7c7c;
}

.container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* PAG */

.conteudo {
    padding-top: 30px;
    width: 100%;
    max-width: 900px;
    margin-left: 50px;
}

.controls {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    padding: 20px;
    margin-bottom: 30px;
}

.controls-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


@media(min-width: 768px) {
    .controls-container {
        flex-direction: row;
    }
}

.buscarInput {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #dddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.buscarInput:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.filtroGrupo {
    display: flex;
    gap: 10px;
}

.filtro-select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.filtro-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.add-btn {
    background-color: #7fbccc;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.add-btn:hover {
    background-color: #7ab2bb;
}

.note-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media(min-width: 768px) {
    .note-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(min-width: 1024px) {
    .note-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


.form-textarea {
    width: 440px !important;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);

}



.note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.note-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80%;
}

.note-actions {
    display: flex;
    gap: 10px;
}

.delete-btn {
    color: #999;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s;
}

.delete-btn:hover {
    color: #ef4444;
}

.note-text {
    color: #666;
    margin-bottom: 40px;
    white-space: pre-line;
}

.note-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    gap: 8px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.note-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 180px;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: transform 0.2s;
    overflow: hidden;
    gap: 8px;
}

.note-card:hover {
    transform: translateY(-4px);
}


.note-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    /* Isso garante que fique no final */
    padding-top: 0.5rem;
}

.tag-trabalho {
    background-color: #e0e7ff;
    color: #4338ca;
}

.tag-pessoal {
    background-color: #ede9fe;
    color: #7c3aed;
}

.tag-ideias {
    background-color: #ecfdf5;
    color: #047857;
}

.tag-lembrete {
    background-color: #fef3c7;
    color: #b45309;
}

.note-date {
    font-size: 0.75rem;
    color: #999;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.6;
    color: #888;
    margin-top: 2rem;
    display: none;
}


.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    margin-bottom: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 20px;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #666;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.filter-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* LIXEIRA */
#lixeiraContainer {
    flex-wrap: wrap;
    padding: 10px 5px 5px 10px;
    margin-left: 100px;
}

.empty-trash {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #888;
    font-size: 1.2rem;
    margin-left: 250px;
}

.empty-trash i {
    font-size: 2.5rem;
    color: #ccc;
}

/* MARCADORES */

.marcadores-container {
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tag-title {
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 12px;
}

.tag-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hidden {
    display: none;
}

/*  */

