/* VIDEMI Bottom Navbar */
.vdm-bnav-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(var(--vdm-bn-h, 60px) + env(safe-area-inset-bottom, 0px));
    background: var(--vdm-bn-bg, #ffffff);
    box-shadow: var(--vdm-bn-shd, 0 -8px 30px rgba(15, 23, 42, 0.08));
    border-radius: var(--vdm-bn-rad, 16px 16px 0 0);
    z-index: 99999;
    padding: var(--vdm-bn-pad, 0 12px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    /* Glassmorphism support */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.96); /* default fallback if var not pure hex */
}

.vdm-bnav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 600px;
    height: 100%;
}

.vdm-bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--vdm-bn-ina, #94A3B8);
    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.vdm-bnav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--vdm-bn-act, #E11D2E);
    border-radius: 0 0 2px 2px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vdm-bnav-item:hover, .vdm-bnav-item:active {
    color: var(--vdm-bn-act, #E11D2E);
}

.vdm-bnav-item.active {
    color: var(--vdm-bn-act, #E11D2E);
}

.vdm-bnav-item.active::before,
.vdm-bnav-item:hover::before {
    width: 24px;
}

.vdm-bnav-item.active .vdm-bnav-icon svg {
    stroke-width: 2.5; /* bolder icon when active */
}

.vdm-bnav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
}

.vdm-bnav-item:active .vdm-bnav-icon {
    transform: scale(0.9);
}

.vdm-bnav-icon svg {
    width: 20px;
    height: 20px;
}

.vdm-bnav-label {
    font-size: 9px;
    font-weight: 500;
    margin-top: 1.5px;
    line-height: 1;
}

/* Badge */
.vdm-bnav-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    background: #E11D2E;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-sizing: border-box;
    box-shadow: 0 0 0 2px var(--vdm-bn-bg, #ffffff);
}

/* Search Overlay Premium UI */
.vdm-bnav-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.vdm-bnav-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.vdm-bnav-search-box {
    background: #fff;
    width: 100%;
    max-width: 380px;
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.vdm-bnav-search-overlay.active .vdm-bnav-search-box {
    transform: translateY(0) scale(1);
}

.vdm-bnav-search-box form {
    position: relative;
    display: flex;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s ease;
    align-items: center;
    box-shadow: none !important;
}

.vdm-bnav-search-box form:focus-within {
    border-color: var(--vdm-bn-act, #E11D2E) !important;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.1) !important;
}

.vdm-bnav-search-box input {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 14px 54px 14px 18px !important;
    margin: 0 !important;
    height: auto !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: none !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

.vdm-bnav-search-box button[type="submit"] {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 40px !important;
    width: 40px !important;
    background: var(--vdm-bn-act, #E11D2E) !important;
    border-radius: 12px !important;
    border: none !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    box-shadow: 0 4px 12px rgba(225, 29, 46, 0.25) !important;
}

.vdm-bnav-search-box button[type="submit"] svg {
    width: 18px !important;
    height: 18px !important;
    display: block;
}

.vdm-bnav-search-close {
    width: 100% !important;
    padding: 12px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 !important;
    box-shadow: none !important;
}

.vdm-bnav-search-close:hover, .vdm-bnav-search-close:active {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}
