/* Styles pour la sélection des pièces */
.room-selection {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
}

.room-selection .form-check {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    background-color: white;
    transition: all 0.2s ease;
}

.room-selection .form-check:hover {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.room-selection .form-check-input:checked + .form-check-label {
    color: #1976d2;
    font-weight: 500;
}

.room-selection .form-check-input:checked ~ .form-check {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.selected-rooms-container {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    min-height: 60px;
}

.selected-room {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.selected-room:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selected-room .remove-room {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.selected-room .remove-room:hover {
    opacity: 1;
}

.room-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

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

/* Animation pour l'ajout/suppression de pièces */
.selected-room {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour les checkboxes des pièces */
.room-selection .form-check-input {
    margin-top: 0.25rem;
}

.room-selection .form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
    user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
    .selected-room {
        font-size: 0.8em;
        padding: 4px 8px;
        margin: 2px;
    }
    
    .room-selection {
        padding: 0.75rem;
    }
}
