/**
 * Styles pour les filtres des implants IOL
 * Version avec flèche uniquement à gauche
 */

/* Conteneur des filtres */
.amcc-iol-filters-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 20px 0 40px;
    max-width: 300px;
}

/* Style de chaque filtre */
.amcc-iol-filter {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    padding-left: 30px; /* Espace pour la flèche à gauche */
    color: #1F386A;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    border-bottom: 1px solid #E0E0E0;
}

/* Dernier filtre sans bordure en bas */
.amcc-iol-filter:last-child {
    border-bottom: none;
}

/* Style au survol */
.amcc-iol-filter:hover {
    color: #F18700;
}

/* Style actif */
.amcc-iol-filter.active {
    color: #F18700;
    font-weight: 600;
}

.amcc-iol-filter:before {
    content: "";
    position: absolute;
    left: 7px;
    top: 48%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #1F386A; /* Bleu par défaut */
    border-right: 2px solid #1F386A; /* Bleu par défaut */
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
    transition: border-color 0.3s ease;
}

/* Flèche orange au survol */
.amcc-iol-filter:hover:before {
    border-top: 2px solid #F18700;
    border-right: 2px solid #F18700;
}

/* Flèche orange pour l'élément actif */
.amcc-iol-filter.active:before {
    border-top: 2px solid #F18700;
    border-right: 2px solid #F18700;
}

/* Animation de chargement */
.amcc-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.amcc-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.amcc-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(31, 56, 106, 0.2);
    border-radius: 50%;
    border-top-color: #1F386A;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Adaptation pour les différentes tailles d'écran */
@media (max-width: 768px) {
    .amcc-iol-filters-container {
        max-width: 100%;
    }
}
