/* CSS supplémentaire pour le formulaire et le modal */

/* Styles pour les dropdowns Semantic UI */
.ui.selection.dropdown {
    width: 100%;
    padding: 0.78571429em 2.1em 0.78571429em 1em;
    border: 1px solid rgba(34, 36, 38, 0.15);
    border-radius: 0.28571429rem;
    height: 38px;
}

.ui.search.dropdown .menu {
    max-height: 200px;
    overflow-y: auto;
}

/* Amélioration de l'apparence du select2 */
.select2-container .select2-selection--single {
    height: 38px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

/* Message d'erreur de validation */
.help-block.text-danger {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-group.has-error .ui.selection.dropdown {
    border-color: #dc3545;
}

/* Mise en page du formulaire */
.error_placement {
    position: absolute;
    font-size: 12px;
    color: #dc3545;
}

/* Styles pour le modal */
.modal-dialog.modal-lg {
    max-width: 800px;
}

/* Amélioration de l'affichage des listes dans le modal */
.modal-body ul li {
    margin-bottom: 8px;
}

/* Animation pour le bouton de recherche */
#button_create_list:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Styles pour les icônes dans le modal */
.icon-dual-success {
    color: #28a745;
}

/* Responsive */
@media (max-width: 767.98px) {
    .ui.selection.dropdown {
        margin-bottom: 15px;
    }
    
    #button_create_list {
        margin-top: 10px;
    }
}

.select2-container--default .select2-selection--single {
    height: 38px;
    display: flex;
    align-items: center;
    padding-top: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.flag {
    width: 16px;
    height: 11px;
    margin-right: 5px;
    vertical-align: middle;
}

.select2-container--default .select2-results__option {
    padding: 6px;
    display: flex;
    align-items: center;
}

/* CSS pour agrandir les boutons de connexion et d'inscription */
.btn-primary {
    padding: 10px 20px;
    font-size: 14px !important;
    line-height: 1.5;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#acheter-direct-btn {
    padding: 10px 20px;
    font-size: 14px !important;
    line-height: 1.5;
}


/* Uniformisation de la hauteur des champs du formulaire de recherche */

/* Ajustements des hauteurs pour tous les éléments */
.ui.selection.dropdown {
    height: 44px !important;
}

.select2-container .select2-selection--single {
    height: 44px !important; /* Remplace la valeur 38px existante */
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important; /* Remplace la valeur 36px existante */
}

/* Ajustements pour les dropdowns Semantic UI */
.ui.selection.dropdown {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    line-height: 20px !important;
}

/* Alignement vertical du texte */
.ui.selection.dropdown .text {
    line-height: 1.2em !important;
}