/* Switch pour le mode recherche d'opportunités */
.opportunity-mode-switch {
    margin-top: 1rem;
}

.search-mode-toggle-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    gap: 10px;
    margin: 0 auto 0 0;
}

.search-mode-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.search-mode-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 400;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.search-mode-label:first-child {
    text-align: left;
}

.search-mode-label:last-child {
    text-align: right;
}

.search-mode-label.active {
    color: #559DD3;
    font-weight: 600;
}

/* Switch large avec couleurs Bhubbles */
.switch-large {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 300px;
    height: 40px;
}

.switch-large input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-large {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    border: 1px solid #559DD3;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.slider-large:before {
    position: absolute;
    content: "";
    height: 32px;
    width: 32px;
    left: 4px;
    bottom: 4px;
    background-color: #559DD3;
    transition: left 0.4s ease, right 0.4s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:focus + .slider-large {
    box-shadow: none;
}

input:checked + .slider-large:before {
    left: auto;
    right: 4px;
}

/* Effet hover */
.slider-large:hover {
    background-color: #e9e9e9;
}

input:checked + .slider-large:hover {
    background-color: #e9e9e9;
}

/* Responsive */
@media (max-width: 768px) {
    .search-mode-label {
        font-size: 0.75rem;
    }

    .switch-large {
        height: 36px;
    }

    .slider-large:before {
        height: 28px;
        width: 28px;
    }

    input:checked + .slider-large:before {
        transform: translateX(calc(100% - 36px));
    }
}

@media (max-width: 500px) {
    .search-mode-toggle-wrapper {
        max-width: 100%;
    }
    .switch-large {
        max-width: 100%;
    }
    .search-mode-labels span {
        font-size: 16px;
    }
}
