/* Mobile Bottom Navigation Bar Styles */

.mobile-bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--mbn-height, 60px);
    background-color: var(--mbn-bg-color, #F27A1A);
    z-index: var(--mbn-z-index, 9999);
    display: flex;
    align-items: center;
    border-top: var(--mbn-border-top-width, 0px) solid var(--mbn-border-top-color, transparent);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    box-sizing: border-box;
}

.mobile-bottom-nav-bar.mbn-hide-desktop {
    display: none !important;
}

@media (max-width: 991px) {
    .mobile-bottom-nav-bar.mbn-hide-desktop {
        display: flex !important;
    }
    
    /* Add bottom padding to body to prevent bottom nav from covering content */
    body.mbn-body-padding {
        padding-bottom: var(--mbn-height, 60px) !important;
    }
}

.mbn-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.mbn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    flex: 1;
    height: 100%;
    position: relative;
    transition: all 0.25s ease;
    color: var(--mbn-text-color, #ffffff) !important;
}

.mbn-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
}

.mbn-icon {
    font-size: var(--mbn-icon-size, 20px);
    color: var(--mbn-icon-color, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.25s ease, transform 0.25s ease;
}

.mbn-icon svg {
    width: var(--mbn-icon-size, 20px);
    height: var(--mbn-icon-size, 20px);
    fill: currentColor;
}

.mbn-label {
    font-size: var(--mbn-font-size, 11px);
    color: var(--mbn-text-color, #ffffff);
    font-weight: 500;
    transition: color 0.25s ease;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* Badge styling */
.mbn-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--mbn-badge-bg-color, #1e293b);
    color: var(--mbn-badge-text-color, #ffffff);
    font-size: 10px;
    font-weight: bold;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-sizing: border-box;
    line-height: 1;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Shadow styling */
.mobile-bottom-nav-bar.mbn-has-shadow {
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.15);
}

/* Active and Hover States */
.mbn-item.mbn-active, 
.mbn-item:hover {
    color: var(--mbn-text-active-color, #ffffff) !important;
    background-color: var(--mbn-active-item-bg, transparent);
}

.mbn-item.mbn-active .mbn-icon,
.mbn-item:hover .mbn-icon {
    color: var(--mbn-icon-active-color, #ffffff);
}

.mbn-item.mbn-active .mbn-label,
.mbn-item:hover .mbn-label {
    color: var(--mbn-text-active-color, #ffffff);
}

/* Label Visibility Effects */
.mbn-labels-never .mbn-label {
    display: none !important;
}
.mbn-labels-never .mbn-icon-wrapper {
    margin-bottom: 0;
}

.mbn-labels-active_only .mbn-label {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, height 0.2s ease;
    margin-top: 0;
}
.mbn-labels-active_only .mbn-item.mbn-active .mbn-label,
.mbn-labels-active_only .mbn-item:hover .mbn-label {
    opacity: 1;
    height: auto;
    margin-top: 3px;
}

/* Active Item Effects */

/* 1. Accent Line Effect */
.mbn-effect-accent-line .mbn-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--mbn-accent-line-color, #ffffff);
    transition: width 0.25s ease;
}
.mbn-effect-accent-line .mbn-item.mbn-active::after {
    width: 60%;
}

/* 2. Background Pill Effect */
.mbn-effect-background-pill .mbn-item .mbn-icon-wrapper {
    padding: 6px 16px;
    border-radius: 20px;
    transition: background-color 0.25s ease;
}
.mbn-effect-background-pill .mbn-item.mbn-active .mbn-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 3. Grow Effect */
.mbn-effect-grow .mbn-item.mbn-active .mbn-icon {
    transform: scale(1.2);
}

/* Hide on Scroll State */
.mobile-bottom-nav-bar.mbn-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* Fix mobile drawer crop issue caused by body bottom padding */
@media (max-width: 991px) {
    .dc-drawer {
        top: 0 !important;
        bottom: 0 !important;
        height: auto !important;
    }
}
