.dialog-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dialog-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 60%;
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.dialog-left label {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    font-weight: bold;
}

.dialog-left input {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
    font-size: 16px;
}

.dialog-left {
    width: 70%;
}

.dialog-right {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    gap: 5px;
}



.dialog-right div {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
    cursor: default;
}


.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    border: none;
    background: none;
    color: #888;
}

.close-btn:hover {
    color: #000;
}

.mot-draggable {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    background-color: #fff;
    border: 1px solid #888;
    border-radius: 20px;
    font-size: 14px;
    user-select: none;
    transition: background-color 0.2s;
    cursor: pointer; /* compatible avec le clic ET le drag */
    touch-action: none;
}

.mot-draggable:active {
    cursor: grabbing;
    background-color: #eee;
}


.champ-container {
    margin-bottom: 12px;
}

.input-clear-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-clear-wrapper input {
    width: 100%;
    padding-right: 28px; /* espace pour l’icône balai */
    height: 30px;
    font-size: 14px;
}

.clear-btn {
    position: absolute;
    right: 6px;
    cursor: pointer;
    font-size: 18px;
    color: #888;
    user-select: none;
}

.clear-btn:hover {
    color: #000;
}

.double-input {
    gap: 4px;
    display: flex;
    align-items: center;
}

.double-input input[type="number"] {
    width: 60px;
    text-align: center;
}

.note-separateur {
    padding: 0 4px;
    font-weight: bold;
}

.dialog-actions {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

#saveBottleBtn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

#saveBottleBtn:hover {
    background-color: #45a049;
}

.champ-erreur {
    color: red;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}


#loadingSpinner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999; 

}


.spinner {
    border: 8px solid #f3f3f3; 
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;

}

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

    100% {
        transform: rotate(360deg);
    }
}