/* File Drop Zone Component Styles - Based on index.css */
#mainContainer {
    min-height: 98vh;
    height: fit-content;
    max-height: none;
}


#loading,
#loadingSource {
    display: none;
    margin-top: 20px;
    font-size: 18px;
    color: #333;
}

#loadingSource {
    display: inline-block;
    position: absolute;
    right: 50%;
    /* Positionne l'indicateur de chargement à droite */
    top: 15px;
    /* Centre verticalement l'indicateur de chargement */
    font-size: 18px;
    color: #333;
}

.switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
    margin-right: 5px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

#fileSearchLink {
    display: block;
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}

#fileSearchLink:hover {
    text-decoration: underline;
}

#mainContainer .text-center h1 {
    margin-top: 20px !important;
    font-size: 40px !important;
    font-weight: bolder !important;
}


#documentFormatContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Aligne les éléments enfants à gauche */
    margin-bottom: 5px;
    margin-left: 4px;
}

#documentFormatTrigger {
    position: relative;
    background-color: rgba(255, 255, 255, 0);
    font-size: calc(var(--font-size)*0.6);
    font-style: italic;
    color: #000000a8;
}





.custom-arrow {
    font-size: calc(var(--height-container)*0.4);
    /* Ajuste la taille de l'icône */
    line-height: 1.5;
    /* Ajuste la hauteur de la ligne */
    color: var(--color);
    /* Optionnel : change la couleur de l'icône */
}

@media screen and (max-width: 768px) and (max-height: 1024px) {



    .RemoveTargetDocumentContainerButton {
        right: 15% !important;
    }


}

/* -------------------------*/

.drop-zone,
#dropZone {
    border: 1px dashed #ccc;
    padding: 20px;
    text-align: center;
    transition: background-color 0.3s;
    height: 400px;
    width: 100%;
    margin-bottom: 0px;
    background-color: #f7f3f3;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    left: 0;
}

.drop-zone.drag-over {
    background-color: #f0f0f0;
}

#dropZone p {
    margin: 0;
    color: #333;
}

#or {
    font-size: calc(var(--font-size)*0.8);
}

#ActionContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: var(--height-container);
}



.action-button,
#actionButton {
    position: relative;
    color: white;
    cursor: pointer;
    opacity: 1;
    border: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 10px;
    padding: 0;
    line-height: 30px;
    background-color: #009548;
    width: 15%;
    height: calc(var(--height-container)*0.75);
    font-size: calc(var(--font-size));
}

.action-button:hover,
#actionButton:hover {
    background-color: #067a2d;
}

.action-button:focus,
#actionButton:focus {
    outline: none;
}

.action-button:disabled,
#actionButton:disabled,
#cancelButton:disabled {
    cursor: not-allowed;
    background-color: #ccc;
    color: #000000;
    opacity: 0.5 !important;
}

#cancelButton {
    position: relative;
    color: white;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
    text-align: center;
    background-color: #f52213;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 10px;
    padding-bottom: 0;
    width: 15%;
    height: calc(var(--height-container)*0.75);
    font-size: calc(var(--font-size));
}

#cancelButton:not(:disabled):hover {
    background-color: #e41e10;
}

#cancelButton:focus {
    outline: none;
}

/* Base styles pour tous les loading indicators */
.loading-indicator-base {
    border: 2px solid transparent;
    border-top: 2px solid #000000;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

/* Loading indicator global (à côté du bouton translate) */
.loading-indicator {
    position: relative;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #000000;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Information Container Styles */
#informationContainer, #statusInformationContainer {
    height: auto;
    max-height: 800px;
    overflow-y: auto;
    display: none;
    border: none;
    padding: 10px;
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.25s ease;
    text-align: left;
}

#statusInformationContainer
{
    position: fixed;
}

#informationContainer p, #satusInformationContainer p {
    position: relative;
    height: auto;
    text-align: left;
    font-size: var(--font-size, 16px); 
    padding-left: 10px;
}

.closeButtonSpace {
    height: 10px;
}

.closeButton {
    position: absolute;
    /* Positionne le bouton par rapport au conteneur */
    top: 8px;
    right: 8px;
    background-color: #00000010;
    border: none;
    border-radius: 15px;
    /* Rend les coins du bouton arrondis */
    width: 30px;
    /* Largeur du bouton */
    height: 30px;
    /* Hauteur du bouton */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    line-height: 7px;
    /* Hauteur de ligne pour centrer verticalement */
    padding-bottom: 4px;
    /* Ajustez cette valeur pour déplacer le "X" vers le haut */
    font-size: 16px;
    z-index: 1000;
}

.closeButton:hover {
    color: #333;
}

/* Styles pour le bouton d'information du glossaire */
#glossaryText {
    font-size: var(--font-size);
}

#glossaryInformation {
    border: none;
    background: none;
}

#glossaryInformation i {
    font-size: calc(var(--font-size)*0.7);
    color: #ccc;
}

.container {
    display: flex;
    justify-content: center;
    /* Center items horizontally */
    align-items: center;
    /* Center items vertically */
    flex-direction: column;
    /* Stack items vertically */
    margin-top: 10px;
    width: 90%;
    --height-container: 40px;
    /* 5% de la hauteur de .container */


}

.container>* {
    width: 100%;
    /* Ajustez cette valeur selon vos besoins */
    left: 0;
    margin-left: 0;

}

