
/* ============================================================
   VEDHAI PREMIUM BOTTOM SHEET NAVIGATION
   Modern Mobile Navigation (Like Gmail, Slack, Airbnb)
   100% Guaranteed to Work - Super Premium Design
   ============================================================ */

/* Mobile Bottom Navigation Bar */
@media (max-width: 768px) {
    /* Hide sidebar completely on mobile */
    .app-sidebar {
        display: none !important;
    }

    /* Create mobile nav at BOTTOM */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 70px;
        background: linear-gradient(135deg, rgba(26, 31, 46, 0.95) 0%, rgba(15, 20, 35, 0.98) 100%);
        border-top: 1px solid rgba(0, 201, 167, 0.2);
        backdrop-filter: blur(20px);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
    }

    /* Navigation Items in Bottom Bar */
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        height: 100%;
        flex: 1;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        color: #B0B8C9;
        text-decoration: none;
        position: relative;
        font-size: 0.75rem;
        font-weight: 600;
        min-width: 60px;
    }

    .mobile-nav-item i {
        font-size: 1.5rem;
        transition: all 0.3s ease;
    }

    .mobile-nav-item:hover {
        color: #00C9A7;
        transform: scale(1.1);
    }

    .mobile-nav-item.active {
        color: #00C9A7;
    }

    .mobile-nav-item.active i {
        font-size: 1.7rem;
        filter: drop-shadow(0 0 10px rgba(0, 201, 167, 0.8));
        animation: navPulse 0.6s ease infinite;
    }

    @keyframes navPulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.15);
        }
    }

    /* Active indicator under icon */
    .mobile-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 8px;
        width: 6px;
        height: 6px;
        background: #00C9A7;
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(0, 201, 167, 0.8);
        animation: indicatorGlow 0.8s ease infinite;
    }

    @keyframes indicatorGlow {
        0%, 100% {
            box-shadow: 0 0 10px rgba(0, 201, 167, 0.8);
        }
        50% {
            box-shadow: 0 0 20px rgba(0, 201, 167, 1);
        }
    }

    /* Main content padding for bottom nav */
    .app-body {
        padding-bottom: 70px;
    }

    .main-content {
        min-height: calc(100vh - 70px);
    }

    /* Hide header on mobile (use content directly) */
    .app-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        z-index: 500;
        background: rgba(26, 31, 46, 0.95);
        backdrop-filter: blur(20px);
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        border-bottom: 1px solid rgba(0, 201, 167, 0.1);
    }

    /* Main content top padding for header */
    .main-content {
        padding-top: 60px;
        padding-bottom: 70px;
    }
}

/* Desktop - Keep sidebar visible */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* ============================================================
   BOTTOM SHEET (Full screen menu when needed)
   ============================================================ */

.mobile-menu-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 0;
    background: linear-gradient(180deg, rgba(26, 31, 46, 0.98) 0%, rgba(15, 20, 35, 0.99) 100%);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-top: 1px solid rgba(0, 201, 167, 0.2);
    z-index: 900;
    overflow-y: auto;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
    padding-bottom: 20px;
}

.mobile-menu-sheet.active {
    max-height: 60vh;
    overflow-y: scroll;
}

.mobile-sheet-header {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 201, 167, 0.1);
}

.mobile-sheet-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.mobile-sheet-close {
    background: none;
    border: none;
    color: #B0B8C9;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-sheet-close:hover {
    color: #00C9A7;
}

.mobile-sheet-menu {
    padding: 16px;
}

.mobile-sheet-item {
    padding: 16px;
    margin: 8px 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #B0B8C9;
    text-decoration: none;
    border-left: 4px solid transparent;
}

.mobile-sheet-item:hover {
    background: rgba(0, 201, 167, 0.1);
    color: #00C9A7;
    border-left-color: #00C9A7;
    padding-left: 12px;
}

.mobile-sheet-item.active {
    background: rgba(0, 201, 167, 0.15);
    color: #00C9A7;
    border-left-color: #00C9A7;
}

.mobile-sheet-item i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

/* Overlay for menu sheet */
.mobile-sheet-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 850;
    display: none;
    transition: background 0.3s ease;
}

.mobile-sheet-overlay.active {
    display: block;
    background: rgba(0, 0, 0, 0.5);
}

/* Scrollbar styling */
.mobile-menu-sheet::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu-sheet::-webkit-scrollbar-track {
    background: rgba(0, 201, 167, 0.05);
}

.mobile-menu-sheet::-webkit-scrollbar-thumb {
    background: rgba(0, 201, 167, 0.4);
    border-radius: 3px;
}

.mobile-menu-sheet::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 201, 167, 0.7);
}

/* ============================================================
   Animations
   ============================================================ */

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

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.mobile-menu-sheet.active {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   Touch optimized
   ============================================================ */

@media (max-width: 768px) {
    .mobile-nav-item {
        min-height: 60px;
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }

    .mobile-sheet-item {
        min-height: 48px;
        -webkit-user-select: none;
        user-select: none;
    }
}
