@import url("theme/qrcode/custom.css");

.content {
    margin-left: 20%;
    padding: 0 16px;
    margin-top: -807px;
}
.div_form{
    margin-left: 20%;
}
.div_result{
    margin-left: 20%;
}

@media (max-width: 900px){
    .content {
        margin-left: 0%;
        padding: 0 16px;
        margin-top: 0;
        }

    .div_result{
        margin-left: 0;
    }
}

body{
    font-family: Georgia,serif;
    overflow-x: hidden !important;
}
.align-right {
    margin-left: auto; /* Push the button container to the right */
    align-self: flex-end; /* Align it to the bottom */
}
.align-right_btn {
    display: flex;
}

.button-custom {
    margin-left: 10px !important;
    margin-right: 10px !important;
    color: var(--brand-color-primary);
    height: 150px;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-shadow: 0 0 0 0 rgba(13,110,254);
    border-radius: 5px;
    border: 2px solid var(--brand-color-primary);
}
/* dynamique */
.button-custom_x {
    margin-left: 10px !important;
    margin-right: 10px !important;
    height: 180px;
    min-width: 230px ! important;
    display: flex;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 0 0 0 rgba(13, 110, 254);
    border-radius: 5px;
    border: 2px solid #fff;
}
.button-custom_x:hover {
    cursor: pointer;
    margin-left: 10px !important;
    margin-right: 10px !important;
    height: 180px;
    min-width: 230px ! important;
    display: flex;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 0 0 0 var(--brand-color-primary);
    border-radius: 5px;
    border: 2px solid var(--brand-color-primary);
}
.button-custom_x:hover .X {
    margin: 0 6px; /* Espace autour du texte */
    letter-spacing: 2px;
    display: inline-flex; /* Utiliser inline-flex pour aligner correctement */
    align-items: center; /* Centre verticalement le texte */
    color: var(--brand-color-primary); /* Corriger la variable si nécessaire */
}
.svg_one {
    transition: width 0.3s ease, height 0.3s ease, color 0.3s ease; /* Ajoute une transition fluide */
}
.button-custom_x:hover .svg_one {
    width: 30px;
    height: 30px;
    color: var(--brand-color-primary); /* Corriger la variable si nécessaire */
}
._svg_three_dot {
    transition: color 0.3s ease; /* Animation de la couleur */
}

._svg_three_dot:hover {
    color: var(--brand-color-primary); /* Changer la couleur au survol */
    animation: move 0.6s infinite; /* Appliquer l'animation lors du survol */
}

@keyframes move {
    0%, 100% {
        transform: translateY(0); /* Position initiale */
    }
    50% {
        transform: translateY(-5px); /* Déplacement vers le haut */
    }
    100% {
        transform: translateY(5px); /* Retour au bas */
    }
}
.d-flex {
    display: flex;
    align-items: center;
}
.diplay_flex{
    display: flex;
}
._svg {
    margin-right: 8px; /* Espace entre le premier SVG et le texte */
}

.X {
    margin: 0 6px; /* Espace autour du texte */
    letter-spacing: 2px;
    display: inline-flex; /* Utiliser inline-flex pour aligner correctement */
    align-items: center; /* Centre verticalement le texte */
}

._svg_three_dot {
    margin-left: auto; /* Permet de pousser le dernier SVG à droite */
}
/* end dynamique */
/* dropdown */
.dropdown {
    position: relative; /* Pour positionner le contenu déroulant */
    display: inline-block; /* Permet d'avoir un élément à la taille du SVG */
}

.dropdown-content {
    display: none; /* Cacher le contenu par défaut */
    position: absolute; /* Positionner par rapport à l'élément parent */
    background-color: white; /* Couleur de fond */
    min-width: 232px; /* Largeur minimale */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Ombre */
    z-index: 1; /* Au-dessus des autres éléments */
}

.dropdown-content a {
    color: black; /* Couleur du texte */
    padding: 12px 16px; /* Espace autour du texte */
    text-decoration: none; /* Pas de soulignement */
    display: block; /* Pour que chaque option prenne toute la largeur */
}

.dropdown-content a:hover {
    background-color: #f1f1f1; /* Couleur de fond au survol */
}
.button_dropdown_option{
    border: 2px solid rgb(245,248,251);
    padding: 7px 5px;
    color: #000;
}
.button_dropdown_option:hover{
    border: 2px solid rgb(245,248,251);
    padding: 7px 5px;
    color: var(--brand-color-primary);
}
/* End dropdown*/
.svg-custom {
    border: 2px dotted var(--brand-color-primary);
    border-radius: 50%;
    padding: 10px;
}

.text_b{
        margin-left: 5px;
    }
.btn_list_qrcode{
    padding-left: 1rem;    /* ps-3 */
    padding-right: 1rem;   /* pe-3 */
    padding-top: 0.5rem;   /* pt-2 */
    padding-bottom: 0.5rem;
}
.btn_create{
    padding-left: 1rem;    /* ps-3 */
    padding-right: 1rem;   /* pe-3 */
    padding-top: 0.5rem;   /* pt-2 */
    padding-bottom: 0.5rem;
    margin-right: 0.5 rem;
}


.table-responsive {
    overflow-x: auto; /* Permet le défilement horizontal */
    -webkit-overflow-scrolling: touch; /* Scroll fluide pour mobile */
}

table {
    width: 100%;
    border-collapse: collapse; /* Fusionne les bordures des cellules */
    margin-bottom: 20px;
}

th, td {
    padding: 8px;
    text-align: center;
    border: none; /* Supprime la bordure des cellules */
}

th {
    background-color: #f4f4f4;
}
.active {
    background-color: rgb(39, 191, 88);
    padding: 5px;
    color: white;
    border-radius: 5px;
}
.delete{
    background-color: rgb(244, 149, 149);
    padding: 5px;
    color: white;
    border-radius: 5px;
}
.suspended{
    background-color: rgb(142, 240, 234);
    padding: 5px;
    color: white;
    border-radius: 5px;
}
.three_dots{
    margin-left: 15px;
    color: rgb(39, 191, 88);
    cursor: pointer;
}

li.disabled .dropdown-item {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}
@media (max-width: 900px) {
    .div_form{
        margin-left: 0%;
    }
    .text_create_b{
        display: none;
    }
    .text_b{
        margin-left: 3px;
    }
    .h2_{
       font-size: 20px ! important;
    }

    .btn_list_qrcode{
        padding-left: 0.5rem !important;    /* ps-3 */
        padding-right: 0.5rem !important;   /* pe-3 */
        padding-top: 0.5rem !important;   /* pt-2 */
        padding-bottom: 0.5rem !important;
    }
    .btn_create{
        padding-left: 1rem;    /* ps-3 */
        padding-right: 1rem;   /* pe-3 */
        padding-top: 0.5rem;   /* pt-2 */
        padding-bottom: 0.5rem;
        margin-right: 0.5 rem;
    }
    .svg_create{
        padding-top: 2px ! important;
        width: 24px !important;
    }
    table {
        min-width: 800px; /* Largeur minimale du tableau pour éviter qu'il soit trop petit */
    }
}

.scans{
    color: #e5c209;
}
.ul_scans:hover .scans{
    color: var(--brand-color-primary);
}

.download_btn{
    cursor: pointer;
    padding: 10px;
    border: 2px solid var(--brand-color-primary);
    border-radius: 5px;
    color: var(--brand-color-primary);
    background-color: rgb(234, 234, 236);
}
.download_btn:hover{
    padding: 10px;
    border: 2px solid var(--brand-color-primary);
    border-radius: 2px;
    color: var(--brand-color-primary);
    background-color: #fff;
}
.detail_btn{
    cursor: pointer;
    padding: 10px;
    border: 2px solid var(--brand-color-primary);
    border-radius: 5px;
    color: var(--brand-color-primary);
    background-color: rgb(234, 234, 236);
}
.detail_btn:hover{
    padding: 10px;
    border: 2px solid var(--brand-color-primary);
    border-radius: 2px;
    color: var(--brand-color-primary);
    background-color: #fff;
}
.setting{
    cursor: pointer;
    padding: 5px;
    border: 2px solid var(--brand-color-primary);
    border-radius: 5px;
    color: #fff;
    background-color: var(--brand-color-primary); 
}
.setting:hover{
    cursor: pointer;
    padding: 5px;
    border: 2px solid var(--brand-color-primary);
    border-radius: 5px;
    color: var(--brand-color-primary);
    background-color: #fff; 
}


/* Custom styling for the select element */
.form-select {
    width: 100%;
    border: 2px solid rgb(234, 234, 236);
    background-color: rgb(234, 234, 236);
    padding: 8px;
    border-radius: 5px;
    font-size: 16px;
    color: #000;
}

/* Style for the dropdown options */
.form-select option {
    background-color: white; /* Background color for the options */
    color: black;            /* Text color for the options */
}

/* Optional: Add hover effect on select (this does not affect the options) */
.form-select:hover {
    background-color: white;
    border-color: var(--brand-color-primary);
    color: var(--brand-color-primary);
}

/* Hover and selected option color */
.form-select option:hover {
    background-color: var(--brand-color-primary); /* Change option hover background */
    color: white; /* Text color for hovered option */
}

/* Styling the selected option */
.form-select option:checked {
    background-color: var(--brand-color-primary); /* Background for selected option */
    color: white; /* Text color for selected option */
}



.custom-checkbox {
    width: 30px;
    height: 30px;
    appearance: none;
    background-color: white;
    border: 2px solid rgb(168 169 169);
    border-radius: 10px;
    cursor: pointer;
    display: inline-block;
    position: relative;
}

/* When the checkbox is checked */
.custom-checkbox:checked {
    background-color: var(--brand-color-primary);
    border-color: var(--brand-color-primary);
}

/* Adding a checkmark when checked */
.custom-checkbox:checked::before {
    content: '';
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"%3E%3Cpath stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"%3E%3C/path%3E%3C/svg%3E');
    width: 24px;
    height: 24px;
    display: inline-block;
    background-size: contain;
    color: white ! important;   
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
}

.card {
    min-width: 200px; /* Ajustez la largeur selon vos besoins */
    height: 100px; /* Ajustez la hauteur selon vos besoins */
    background-color: #fff;
    margin: 10px;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}
