.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10000;
}

.ui-menu-item {
    padding: 5px;
    font-size: 14px;
}

.ui-menu-item:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

.ui-helper-hidden-accessible {
    display: none;
}

/* STILI ORIGINALI PER LA FASE */
.phase-nav-container {
    margin: 20px 0;
}

.phase-nav {
    display: flex;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.phase-nav-item {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    text-decoration: none;
    color: #6c757d;
    background: white;
    border: none;
    border-right: 1px solid #dee2e6;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    position: relative;
}

.phase-nav-item:last-child {
    border-right: none;
}

.phase-nav-item:hover {
    background: #e9ecef;
    color: #495057;
}

.phase-nav-item.active {
    background: var(--primary-color);
    color: #157f75;
    font-weight: 600;
}

.phase-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #157f75;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .phase-nav {
        flex-direction: column;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .phase-nav-item {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding: 15px 20px;
        text-align: left;
        font-size: 0.9rem;
    }

    .phase-nav-item:last-child {
        border-bottom: none;
    }

    .phase-nav-item.active::after {
        width: 4px;
        height: 100%;
        left: 0;
        top: 0;
        bottom: auto;
    }
}

/* VERSIONE COMPATTA PER SCHERMI MOLTO PICCOLI */
@media (max-width: 576px) {
    .phase-nav-item {
        padding: 12px 15px;
        font-size: 0.8rem;
    }

    /* Abbreviazioni per mobile */
    .phase-nav-item .phase-full {
        display: none;
    }

    .phase-nav-item .phase-short {
        display: inline;
    }
}

@media (min-width: 577px) {
    .phase-nav-item .phase-short {
        display: none;
    }

    .phase-nav-item .phase-full {
        display: inline;
    }
}

/* SOTTOPESO - Non presente nell'immagine, uso un verde più chiaro */
.bg-underweight {
    background-color: #9c8d0c !important;
}
.border-underweight {
    border-color: #513d07 !important;
}
.text-underweight {
    color: #d37b2f !important;
}


/* NORMOPESO - Verde lime */
.bg-normal-weight {
    background-color: #8bc34a !important;
}
.border-normal-weight {
    border-color: #689f38 !important;
}
.text-normal-weight {
    color: #ffffff !important;
    font-weight: 600;
}

/* SOVRAPPESO - Giallo */
.bg-overweight {
    background-color: #ffeb3b !important;
}
.border-overweight {
    border-color: #fbc02d !important;
}
.text-overweight {
    color: #f57f17 !important;
    font-weight: 600;
}

/* OBESITÀ I - Arancione */
.bg-obesity-1 {
    background-color: #ff9800 !important;
}
.border-obesity-1 {
    border-color: #f57c00 !important;
}
.text-obesity-1 {
    color: #ffffff !important;
    font-weight: 600;
}

/* OBESITÀ II - Rosso arancio */
.bg-obesity-2 {
    background-color: #ff5722 !important;
}
.border-obesity-2 {
    border-color: #d84315 !important;
}
.text-obesity-2 {
    color: #ffffff !important;
    font-weight: 600;
}

/* OBESITÀ III - Rosso scuro */
.bg-obesity-3 {
    background-color: #d32f2f !important;
}
.border-obesity-3 {
    border-color: #b71c1c !important;
}
.text-obesity-3 {
    color: #ffffff !important;
    font-weight: 600;
}

/* Transizione per hover effect */
#bmi-value {
    transition: all 0.3s ease;
}

#bmi-value:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.collapse-icon {
    transition: transform 0.3s ease;
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Stile per le card dei nutrizionisti */
.nutritionist-card {
    border-left: 3px solid #0d6efd;
    background-color: #f8f9fa;
}

.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.price-badge {
    font-size: 1.25rem;
    font-weight: 600;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.category-badge-bustine { background-color: #0d6efd; }
.category-badge-integratori { background-color: #ffc107; color: #000; }
.category-badge-lowcarb { background-color: #198754; }