/* home.css: layout of the /app/ page. Colors, type and components come from tally.css. */

body {
    margin: 0;
    padding: 0;
}

#navbarMain, #mobileTopBar {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.tab {
    padding: 1em;
}

.tab.hidden {
    display: none !important;
}

/* Force hide anything */
.force-hidden {
    display: none !important;
}

#content {
    padding-bottom: 70px; /* enough space so content doesn't hide under bottom nav */
}

#bottomNav {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 999;
}

.navbar {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    #content {
        max-width: 100%;
        padding: 10px 10px 96px; /* the bottom nav is ~76px tall */
    }

    #loginForm, #signupForm {
        max-width: 100%;
        margin: 0 auto;
    }

    .navbar .nav-tabs {
        flex-direction: column;
        text-align: center;
    }

    .modal-dialog:not(.modal-fullscreen-sm-down) {
        margin: 10px;
    }
}

@media (min-width: 769px) {
    #content {
        max-width: 720px;
        margin: 0 auto;
    }

    #loginForm, #signupForm {
        max-width: 400px;
        margin: 20px auto;
    }
}

#globalSpinner {
    background: rgba(7, 16, 18, .35);
}

/* Photo inventory */
.scan-action { min-height: 92px; }
.scan-photo { position: relative; display: inline-block; max-width: 100%; }
.scan-photo img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.scan-outline {
    position: absolute;
    border: 3px solid #ffd740;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .55);
    pointer-events: none;
}
.scan-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border-width: 2px !important; }
.scan-confirm-bar {
    position: sticky;
    bottom: 70px;
    padding: 8px 0;
    background: var(--pt-background);
    z-index: 10;
}
@media (min-width: 768px) {
    .scan-confirm-bar { bottom: 0; }
}

/* Admin tab */
.admin-chart { height: 260px; }
.admin-outline-number {
    position: absolute; top: -2px; left: -2px; padding: 0 4px;
    font-size: .7rem; font-weight: 700; color: #000; background: #ffd740; border-radius: 0 0 4px 0;
}
.admin-photo-missing {
    padding: 2rem 1rem; text-align: center; color: var(--bs-secondary-color);
    border: 1px dashed var(--bs-border-color); border-radius: 8px;
}
.admin-search { max-width: 320px; }
.admin-thumb {
    width: 40px; height: 40px; object-fit: cover; border-radius: 8px; border: 1px solid var(--pt-border);
}
.admin-thumb-more { font-size: .75rem; color: var(--pt-text-muted); padding-left: 2px; }
.admin-facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem .75rem; }
.admin-facts dt { font-weight: 400; color: var(--pt-text-muted); }
.admin-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.admin-meter { height: 6px; }
