/* =========================
   LAYOUT & CONTAINERS
========================= */

.notesContainer {
    margin-top: 20px;
    width: 100%;
}

.filter-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

#searchInput {
    width: 300px;
}

#categoryFilter {
    width: 150px;
}

/* =========================
   AUTH MODAL & SHEET
========================= */

.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.auth-modal.show { display: flex; }

.auth-sheet {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    animation: modalFadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-sheet h3{
   text-transform:uppercase;
   text-align:center;
}

body.dark-mode .auth-sheet {
    background: #2a2a2a;
    color: white;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 600px) {
    #searchInput {
        width: 100%;
        max-width: 300px;
    }

    .footerDiv {
        flex-wrap: wrap;
    }

    .footer-left {
        flex: 1;
    }

    .footer-right {
        justify-content: flex-end;
    }
}

/* =========================
   MAINTENANCE OVERLAY
========================= */

.maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.maintenance-box {
    background: #1e1e1e;
    color: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    max-width: 350px;
    width: 90%;
}
