:root {
    --app-bg: #ffffff;
    --app-tint: #ff4d4d;
    --app-bottom-height: 65px;
    --app-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide desktop elements on mobile app mode */
@media (max-width: 768px) {
    body {
        padding-bottom: var(--app-bottom-height);
        background-color: #f8f9fa;
    }

    .navbar {
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-links {
        display: none !important; /* Hide standard nav links */
    }

    /* Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--app-bottom-height);
        background: white;
        box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
        z-index: 2000;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
        border-top: 3px solid var(--ink-black);
    }

    .bottom-nav-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #666;
        font-size: 0.7rem;
        font-weight: bold;
        text-transform: uppercase;
        transition: var(--app-transition);
        flex: 1;
    }

    .bottom-nav-item i {
        font-size: 1.4rem;
        margin-bottom: 4px;
        transition: var(--app-transition);
    }

    .bottom-nav-item.active {
        color: var(--app-tint);
    }

    .bottom-nav-item.active i {
        transform: translateY(-5px);
        color: var(--app-tint);
    }

    .bottom-badge {
        position: absolute;
        top: 2px;
        right: 18px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        font-size: 10px;
        line-height: 16px;
        border-radius: 8px;
        background: var(--action-red);
        color: #fff;
        border: 2px solid var(--ink-black);
        text-align: center;
        font-family: var(--font-heading);
        font-weight: 900;
        box-shadow: 2px 2px 0 var(--ink-black);
    }

    .bottom-avatar-wrap {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 2px solid var(--ink-black);
        overflow: hidden;
        box-shadow: 2px 2px 0 var(--ink-black);
        margin-bottom: 4px;
    }
    .bottom-avatar {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Floating Action Button (Center) */
    .bottom-nav-item.fab-item {
        position: relative;
        z-index: 2001;
    }

    .fab-button {
        width: 55px;
        height: 55px;
        background: var(--ink-black);
        border-radius: 15px; /* Manga style slightly rounded square */
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        transform: translateY(-20px) rotate(-3deg);
        box-shadow: 4px 4px 0 var(--app-tint);
        border: 2px solid var(--ink-black);
    }

    .fab-button i {
        font-size: 1.5rem;
        margin-bottom: 0;
        transform: rotate(3deg);
    }

    /* Side Menu Drawer */
    .mobile-drawer {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100%;
        background: white;
        z-index: 3000;
        transition: var(--app-transition);
        box-shadow: 5px 0 25px rgba(0,0,0,0.2);
        display: flex;
        flex-direction: column;
    }

    .mobile-drawer.open {
        left: 0;
    }

    .drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 2999;
        display: none;
        backdrop-filter: blur(3px);
    }

    .drawer-overlay.active {
        display: block;
    }

    .drawer-header {
        padding: 30px 20px;
        background: var(--ink-black);
        color: white;
        position: relative;
        overflow: hidden;
    }

    .drawer-header::after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 110%;
        height: 20px;
        background: white;
        transform: rotate(-2deg);
    }

    .drawer-user-info {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .drawer-avatar {
        width: 60px;
        height: 60px;
        border-radius: 12px;
        border: 3px solid white;
        object-fit: cover;
    }

    .drawer-menu-list {
        padding: 20px 0;
        flex: 1;
        overflow-y: auto;
    }

    .drawer-menu-item {
        display: flex;
        align-items: center;
        padding: 15px 25px;
        text-decoration: none;
        color: var(--ink-black);
        font-weight: bold;
        gap: 15px;
        border-bottom: 1px dashed #eee;
    }

    .drawer-menu-item i {
        width: 25px;
        color: var(--app-tint);
    }

    /* Intuitive Transitions */
    .page-content-transition {
        animation: slideUp 0.4s ease-out;
    }

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

@media (min-width: 769px) {
    .mobile-bottom-nav, .mobile-drawer, .drawer-overlay {
        display: none !important;
    }
}
