/* JW Mobile Bottom Navigation Widget Styles */

.jw-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    background: #ffffff;
    border-top: 1px solid #e1e5e9;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: transform 0.3s ease;
    position: fixed !important;
    transform: none !important;
    visibility: visible !important;
}

.jw-mobile-nav.position-sticky {
    position: sticky;
}

.jw-mobile-nav.position-relative {
    position: relative;
}

.jw-mobile-nav.hide-on-desktop {
    display: block;
}

@media (min-width: 1025px) {
    .jw-mobile-nav.hide-on-desktop {
        display: none;
    }
}

.jw-mobile-nav.hide-on-tablet {
    display: block;
}

@media (min-width: 481px) and (max-width: 1024px) {
    .jw-mobile-nav.hide-on-tablet {
        display: none;
    }
}

/* Shape Background */
.jw-mobile-nav.has-shape-bg {
    background: transparent;
    border: none;
}

.nav-shape-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #ffffff;
    z-index: -1;
}

.nav-shape-bg svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Container */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    padding: 8px 16px;
    position: relative;
    z-index: 1;
}

/* Navigation Items */
.jw-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 80px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    padding: 8px 12px;
}

.jw-nav-item:hover {
    transform: translateY(-2px);
}

.jw-nav-item.active {
    background-color: rgba(0, 124, 186, 0.1);
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

/* Icon Wrapper */
.nav-icon-wrapper {
    position: relative;
    margin-bottom: 4px;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666666;
    transition: all 0.3s ease;
}

.jw-nav-item.active .nav-icon {
    color: #007cba;
    transform: scale(1.1);
}

.nav-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Labels */
.nav-label {
    font-size: 12px;
    font-weight: 500;
    color: #666666;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
    font-family: 'IRANSans', sans-serif;
}

.jw-nav-item.active .nav-label {
    color: #007cba;
    font-weight: 600;
}

/* Badge */
.nav-badge {
    position: absolute;
    top: -2px;
    right: 8px;
    background-color: #e74c3c;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-sizing: border-box;
    border: 2px solid #ffffff;
    font-family: 'IRANSans', sans-serif;
}

/* Animation Classes */
.jw-mobile-nav.animations-enabled .jw-nav-item {
    cursor: pointer;
}

.jw-mobile-nav.animations-enabled .jw-nav-item:active {
    transform: scale(0.95);
}

.jw-mobile-nav.slide-up {
    animation: slideUpAnimation 0.5s ease-out;
}

/* Click Animations */
.jw-nav-item.bounce-animation {
    animation: bounceAnimation 0.6s ease;
}

.jw-nav-item.scale-animation {
    animation: scaleAnimation 0.3s ease;
}

.jw-nav-item.pulse-animation {
    animation: pulseAnimation 0.8s ease;
}

.jw-nav-item.shake-animation {
    animation: shakeAnimation 0.5s ease;
}

/* Keyframe Animations */
@keyframes slideUpAnimation {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounceAnimation {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes scaleAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulseAnimation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 124, 186, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 124, 186, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 124, 186, 0);
    }
}

@keyframes shakeAnimation {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .nav-container {
        padding: 6px 8px;
    }
    
    .jw-nav-item {
        padding: 6px 8px;
        max-width: 70px;
    }
    
    .nav-icon {
        font-size: 20px;
    }
    
    .nav-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .nav-label {
        font-size: 10px;
    }
    
    .nav-badge {
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        right: 6px;
    }
}

/* RTL Support */
[dir="rtl"] .nav-badge {
    right: auto;
    left: 8px;
}

@media (max-width: 480px) {
    [dir="rtl"] .nav-badge {
        left: 6px;
    }
}

/* Safe Area for iPhone X and newer */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .jw-mobile-nav {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(70px + env(safe-area-inset-bottom));
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .jw-mobile-nav {
        background: #1a1a1a;
        border-top-color: #333;
    }
    
    .nav-icon,
    .nav-label {
        color: #999;
    }
    
    .jw-nav-item.active .nav-icon,
    .jw-nav-item.active .nav-label {
        color: #4dabf7;
    }
    
    .jw-nav-item.active {
        background-color: rgba(77, 171, 247, 0.1);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .jw-mobile-nav {
        border-top: 2px solid #000;
    }
    
    .nav-icon,
    .nav-label {
        color: #000;
    }
    
    .jw-nav-item.active .nav-icon,
    .jw-nav-item.active .nav-label {
        color: #0066cc;
        font-weight: bold;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .jw-mobile-nav,
    .jw-nav-item,
    .nav-icon,
    .nav-label {
        transition: none;
        animation: none;
    }
}

/* Focus Styles for Accessibility */
.nav-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
    border-radius: 8px;
}

.nav-link:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Loading State */
.jw-mobile-nav.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Hidden State */
.jw-mobile-nav.hidden {
    transform: translateY(100%);
}

/* Custom Scrollbar for Better Mobile Experience */
.jw-mobile-nav::-webkit-scrollbar {
    display: none;
}

.jw-mobile-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* .jw-nav-item.active {
    background-color: #000000;
    position: relative;
    bottom: 24px;
    border-radius: 50px;
    padding-top: 20px;
    margin-top: 14px;
} */