/* ==========================================================================
   PWA App Shell Stylesheet (pwa.css)
   Dedicated to installed Progressive Web App (standalone) and mobile app shell.
   Isolated from standard web browser styles (style.css).
   ========================================================================== */

@media (max-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .mobile-bottom-dock {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50px;
        height: calc(50px + env(safe-area-inset-bottom, 0px));
        background: var(--bg-card);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-sizing: border-box;
    }

    .mobile-dock-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1 1 0;
        min-width: 0;
        height: 100%;
        color: var(--text-muted);
        text-decoration: none !important;
        font-size: 0.68rem;
        font-weight: 500;
        transition: color 0.15s ease;
        padding: 2px 1px;
    }

    .mobile-dock-icon-wrapper {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-dock-icon {
        font-size: 1.18rem;
        line-height: 1;
        margin-bottom: 2px;
        display: block;
    }

    .mobile-dock-badge {
        position: absolute;
        top: -4px;
        right: -8px;
        background: #ef4444;
        color: #ffffff;
        font-size: 0.58rem;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        line-height: 14px;
        padding: 0 3px;
        border-radius: 9999px;
        text-align: center;
        border: 1.5px solid var(--bg-card);
        box-sizing: border-box;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
        pointer-events: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-dock-label {
        font-size: 0.65rem;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        text-align: center;
        display: block;
    }

    .mobile-dock-item.active,
    .mobile-dock-item:hover {
        color: var(--primary);
        font-weight: 700;
    }

    .mobile-dock-item.active .mobile-dock-icon {
        transform: scale(1.1);
        transition: transform 0.15s ease;
    }

    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Remove footer line completely above mobile bottom menu */
    .footer {
        display: none !important;
    }
}
