.pira-sticky-topbar {
    position: sticky;
    top: 0;
    z-index: 1060;
}

.custom-navbar {
    background-color: var(--nav-bg, rgba(7, 17, 31, 0.85));
    border-bottom: 2px solid var(--card-border, rgba(0, 174, 239, 0.3));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1050 !important;
}

.custom-navbar .navbar-brand {
    color: #00AEEF;
    font-weight: bold;
    font-size: 1.3rem;
    transition: opacity 0.2s ease;
}

.custom-navbar .navbar-brand:hover {
    opacity: 0.9;
    color: #00AEEF;
}

.custom-navbar .nav-link {
    color: var(--text-color, #D9E2EC);
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus {
    color: var(--accent, #00AEEF);
    text-decoration: none;
}

.custom-navbar .nav-cart-link {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-navbar .nav-cart-icon {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: var(--accent, #00AEEF);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.custom-navbar .nav-cart-link:hover .nav-cart-icon,
.custom-navbar .nav-cart-link:focus .nav-cart-icon {
    stroke: var(--secondary-accent, #0057B8);
}

.custom-navbar .nav-cash-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.custom-navbar .nav-cash-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
}

.custom-navbar .nav-cash-status.is-open {
    color: #047857;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.custom-navbar .nav-cash-status.is-closed {
    color: #D97706;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.32);
}

.cash-open-required-modal .modal-content {
    background: var(--card-bg, #07111F) !important;
    border: 1px solid var(--card-border, rgba(0, 174, 239, 0.28)) !important;
    border-radius: 14px;
    color: var(--text-color, #D9E2EC) !important;
    box-shadow: 0 22px 60px var(--shadow-color, rgba(0, 0, 0, 0.55));
}

.cash-open-required-modal .modal-header,
.cash-open-required-modal .modal-footer {
    border-color: var(--card-border, rgba(0, 174, 239, 0.16)) !important;
    background: var(--search-bg, rgba(5, 11, 20, 0.72)) !important;
}

.cash-open-required-modal .modal-title {
    color: var(--accent, #00AEEF) !important;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
}

.cash-open-required-modal .cash-open-required-text {
    color: var(--text-color, #D9E2EC) !important;
}

.cash-open-required-modal .form-label {
    color: var(--text-muted, #8FA3B8) !important;
    font-weight: 700;
}

.cash-open-required-modal .form-control,
.cash-open-required-modal .form-select {
    background-color: var(--search-bg, rgba(5, 11, 20, 0.92)) !important;
    border: 1px solid var(--card-border, rgba(0, 174, 239, 0.28)) !important;
    color: var(--heading-color, #ffffff) !important;
    border-radius: 8px;
}

.cash-open-required-modal .form-control:focus,
.cash-open-required-modal .form-select:focus {
    background-color: var(--search-bg, rgba(5, 11, 20, 0.98)) !important;
    border-color: var(--accent, #00AEEF) !important;
    color: var(--heading-color, #ffffff) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.18) !important;
}

.cash-open-required-modal .form-control::placeholder {
    color: var(--text-muted, #8FA3B8) !important;
}

.cash-open-required-modal .btn-success {
    background: linear-gradient(135deg, #00AEEF 0%, #0076a3 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700;
}

.cash-open-required-modal .btn-outline-info {
    border-color: var(--accent, #00AEEF) !important;
    color: var(--accent, #43D6FF) !important;
    background: rgba(0, 174, 239, 0.08) !important;
}

.cash-open-required-modal .btn-outline-info:hover,
.cash-open-required-modal .btn-outline-info:focus {
    background: var(--accent, #00AEEF) !important;
    color: #ffffff !important;
}

/* Dropdown Menu styling for dark mode */
.custom-navbar .dropdown-menu {
    background-color: var(--card-bg, #07111F) !important;
    border: 1px solid var(--card-border, rgba(0, 174, 239, 0.22)) !important;
    box-shadow: 0 8px 30px var(--shadow-color, rgba(0, 0, 0, 0.5)) !important;
    z-index: 10000 !important;
}

.custom-navbar .dropdown-menu a.dropdown-item {
    color: var(--text-color, #D9E2EC) !important;
    transition: all 0.2s ease;
}

.custom-navbar .dropdown-menu a.dropdown-item:hover {
    background-color: var(--search-bg, #0B1B2E) !important;
    color: var(--accent, #00AEEF) !important;
}

.custom-navbar .dropdown-menu .form-label {
    color: var(--text-muted, #8FA3B8) !important;
}

.custom-navbar .dropdown-menu .form-select {
    background-color: var(--search-bg, rgba(5, 11, 20, 0.92)) !important;
    border: 1px solid var(--card-border, rgba(0, 174, 239, 0.3)) !important;
    color: var(--heading-color, #ffffff) !important;
    border-radius: 8px !important;
}

.custom-navbar .dropdown-menu .form-select option {
    background: var(--card-bg, #07111F);
    color: var(--text-color, #D9E2EC);
}

/* Vertical Separator */
.navbar-nav .nav-item-separator {
    height: 20px;
    width: 1px;
    background-color: rgba(0, 174, 239, 0.3);
    margin: auto 10px;
    display: flex;
    align-items: center;
}

.custom-navbar .navbar-toggler {
    border: 1px solid rgba(0, 174, 239, 0.35);
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    box-shadow: none;
}

.custom-navbar .navbar-toggler:focus {
    border-color: #00AEEF;
    box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.18);
}

.custom-navbar .navbar-toggler-icon {
    background-image: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
}

.custom-navbar .navbar-toggler-icon::before,
.custom-navbar .navbar-toggler-icon::after,
.custom-navbar .navbar-toggler-icon {
    border-top: 2px solid #43D6FF;
}

.custom-navbar .navbar-toggler-icon::before,
.custom-navbar .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
}

.custom-navbar .navbar-toggler-icon::before {
    top: 3px;
}

.custom-navbar .navbar-toggler-icon::after {
    bottom: 3px;
}

@media (max-width: 767.98px) {
    .custom-navbar .navbar-collapse {
        margin-top: 0.85rem;
        padding: 0.75rem;
        border: 1px solid rgba(0, 174, 239, 0.18);
        border-radius: 12px;
        background-color: rgba(5, 11, 20, 0.98);
    }

    .custom-navbar .navbar-nav {
        gap: 0.25rem;
    }

    .custom-navbar .nav-link {
        padding: 0.75rem 0.9rem;
        border-radius: 8px;
    }

    .custom-navbar .nav-link:hover,
    .custom-navbar .nav-link:focus {
        background-color: rgba(0, 174, 239, 0.08);
    }

    .custom-navbar .dropdown-menu {
        position: static !important;
        transform: none !important;
        margin: 0.25rem 0 0.5rem;
        width: 100%;
        box-shadow: none;
    }

    .custom-navbar .dropdown-menu .dropdown-item {
        white-space: normal;
        padding: 0.7rem 0.9rem;
    }

    .navbar-nav .nav-item-separator {
        display: none;
    }
}
