/* style.css
  This file contains minimal custom styles.
  Most styling is done by Tailwind CSS.
*/

body {
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Hide scrollbars */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Page transition (less important in MPA, but good to have) */
.page {
    display: none; 
    animation: fadeIn 0.3s ease-out;
}
.page.active {
    display: block; 
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* App container setup */
html, body {
    overflow: hidden;
    height: 100%;
}
.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.app-main {
    flex-grow: 1;
    overflow-y: auto;
    /* Space for nav bar */
    padding-bottom: 90px; 
}

/* ================================================== */
/* == MODAL STYLES                                 == */
/* ================================================== */
.modal-backdrop {
    display: none; /* Hidden by default */
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
    z-index: 50;
    animation: fadeInModal 0.2s ease-out;
}
.modal-backdrop.active {
    display: flex; /* Shown with JS */
}
.modal-content {
    background-color: white;
    padding: 1.5rem; /* 24px */
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 320px;
    animation: zoomInModal 0.2s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes zoomInModal {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}