/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://www.mozilla.org/MPL/2.0/.
 */

/* General Body & Layout */
body {
    font-family: 'Inter', sans-serif;
    padding-bottom: 80px;
    text-align: left;
    background-color: #f8f9fa; /* light gray */
}

body.admin-body {
    background-color: #f8f9fa; /* light gray */
}

.content-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 90px);
}

.content-card {
    background-color: #fff; /* white */
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    min-height: 10vh;
    max-height: 120vh;
    display: flex;
    flex-direction: column;
}

.login-card {
    max-width: 450px;
    width: 100%;
    background: #fff; /* white */
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Overlays & Alerts */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1050;
    backdrop-filter: blur(4px);
}

.spinner-overlay.show {
    display: flex;
}

.offline-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #dc3545; /* danger */
    color: white;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 500;
    z-index: 9999;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.offline-status-bar.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff; /* white */
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.bottom-nav a i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.bottom-nav a.active,
.bottom-nav a:hover {
    color: #0D6EFD; /* primary */
}