/* Mobile-First Android Style Utilities */

:root {
    --nav-height: 62px;
    --mobile-primary: #2563eb;
    --mobile-bg: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.85);
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1050;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 25%;
    height: 100%;
    position: relative;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.bottom-nav-item.active {
    color: var(--mobile-primary);
}

.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 3px;
    background: var(--mobile-primary);
    border-radius: 0 0 4px 4px;
}

/* App-like Cards */
.app-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    padding: 16px;
    margin-bottom: 16px;
    transition: transform 0.2s ease;
}

.app-card:active {
    transform: scale(0.98);
}

/* Page Spacing for Bottom Nav */
body.has-bottom-nav {
    padding-bottom: calc(var(--nav-height) + 20px);
}

/* Mobile Header */
.mobile-header {
    background: var(--mobile-primary);
    padding: 30px 16px 45px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    color: white;
    margin-bottom: -25px;
    position: relative;
    z-index: 1;
}

/* Custom Scrollbar for Mobile Feel */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* Animations */
@keyframes ripple {
    0% { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(4); opacity: 0; }
}

.ripple-btn {
    position: relative;
    overflow: hidden;
}
