/* SignalR Status Indicator Styles */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.status-indicator.status-connected {
    background-color: #28a745; /* Green */
    box-shadow: 0 0 4px rgba(40, 167, 69, 0.6);
}

.status-indicator.status-reconnecting {
    background-color: #ffc107; /* Yellow */
    box-shadow: 0 0 4px rgba(255, 193, 7, 0.6);
    animation: pulse 1.5s infinite;
}

.status-indicator.status-disconnected {
    background-color: #dc3545; /* Red */
    box-shadow: 0 0 4px rgba(220, 53, 69, 0.6);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Basket Icon Styles */
.basket-icon-container {
    display: inline-block;
    position: relative;
}

.basket-count-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    line-height: 1;
}

.basket-count-badge .basket-count-text {
    display: block;
    line-height: 1;
}

/* Hide badge when count is 0 */
.basket-icon-container[data-count="0"] .basket-count-badge {
    display: none !important;
}

/* Navbar Mobile Improvements */
@media (max-width: 575.98px) {
    /* Mobile navbar brand adjustments */
    .navbar-brand img {
        height: 50px !important;
        max-height: 50px !important;
    }
    
    /* Mobile navbar collapse styling */
    .navbar-collapse.collapse.show,
    .navbar-collapse.collapsing {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a5482;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 0.5rem 0;
    }
    
    /* Mobile menu navigation styling */
    .navbar-collapse .navbar-nav {
        width: 100%;
        padding: 0 1rem;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9) !important;
        display: block;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.1);
        color: #ffffff !important;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    /* Mobile toggler styling */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    /* Mobile basket icon styling */
    .navbar .fa-shopping-cart {
        font-size: 1.1rem;
    }
    
    .basket-count-badge {
        font-size: 0.6rem !important;
        min-width: 1rem !important;
        height: 1rem !important;
    }
}

@media (min-width: 576px) {
    /* Desktop navbar adjustments */
    .navbar-brand img {
        height: 70px;
        max-height: 70px;
    }
    
    /* Desktop navbar collapse behavior */
    .navbar-collapse.collapse {
        display: flex !important;
        flex-basis: auto;
    }
}

/* Login partial styling fixes */
.login-navbar-collapse .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    vertical-align: middle;
    display: flex;
    align-items: center;
}

.login-navbar-collapse .navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

/* Ensure proper alignment for all nav elements */
.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
}

/* Remove old fa-stack styles that might interfere */
.fa-stack.has-badge .fa-stack-text {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    min-width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}