#files-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    align-items: start;
    align-content: start;
    flex: 1 1 auto;
    overflow-y: auto;
    gap: 10px;
}

#files-content>* {
    flex: 0 0 calc(20% - 10px);
    /* Fix the size to 20% width without growing */
    max-width: calc(20% - 10px);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #files-content {
        display: flex;
        flex-direction: column;
        /* Stack items in a single column */
        flex-wrap: nowrap;
        /* Prevent creating additional columns */
        gap: 10px;
        /* Add spacing between elements */
        overflow-y: auto;
        /* Enable scrolling if content overflows */
    }

    #files-content>* {
        max-width: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        height: 50px;
        flex: 0 0 40px;
        gap: 10px;
        padding-left: 10px;
    }

    .file-image {
        height: 20px !important;
        object-fit: cover;
    }


    .nom_fichier {
        margin: 0 !important;
    }

    #toolbar {
        flex-direction: column;
    }

    #toolbar>* {
        width: 100% !important;
        margin-bottom: 10px;
    }

    #file-type {
        overflow-x: scroll;
    }

    .filetype {
        white-space: nowrap !important;
        min-width: 125px;
    }
}

.folder {
    cursor: pointer;
}

.folder.selected {
    border: 2px solid #21549b96;
    background: #193a6888;
}

.file-image {
    height: 100px;
    object-fit: cover;
}

.nameselected {
    color: white;
    font-weight: 600;
}

.filetype {
    color: #999999;
    cursor: pointer;
    text-align: center;
    width: 130px;
    font-weight: 700;
    border: 2px solid #999999;
    border-radius: 50px;
    transition: 0.2s ease-in-out;
}

#refresh {
    color: #999999;
    cursor: pointer;
    text-align: center;
    width: 130px;
    font-weight: 700;
    border: 2px solid #999999;
    border-radius: 50px;
    transition: 0.2s ease-in-out;
}

#refresh:hover {
    color: #282828;
    border: 2px solid #282828;
    transition: 0.2s ease-in-out;
}

.filetype:hover {
    color: #282828;
    border: 2px solid #282828;
    transition: 0.2s ease-in-out;
}

#pdftype.active {
    border: 3px solid #eb5757;
    color: #eb5757;
    font-weight: bold;
}

#imagetype.active {
    border: 3px solid #ffc535;
    color: #ffc535;
    font-weight: bold;
}

#exceltype.active {
    border: 3px solid #02ac4e;
    color: #02ac4e;
    font-weight: bold;
}

#pptype.active {
    border: 3px solid #ff7627;
    color: #ff7627;
    font-weight: bold;
}

#wordtype.active {
    border: 3px solid #185abd;
    color: #185abd;
    font-weight: bold;
}

#upload {
    border: none;
    font-weight: bold;
    color: white;
    padding: 0 8px;
    transition: 0.3s ease-in-out;
}

/****** Upload ************/
body[data-theme="light"] #upload {
    background-color: #635499;
    transition: 0.3s ease-in-out;
}

body[data-theme="dark"] #upload {
    background-color: #504950;
    transition: 0.3s ease-in-out;
}

body[data-theme="sapin"] #upload {
    background-color: #65B741;
    transition: 0.3s ease-in-out;
}

body[data-theme="anime"] #upload {
    background-color: #74512D;
    color: white;
    transition: 0.3s ease-in-out;
}

body[data-theme="illimite"] #upload {
    background-color: #248f8f;
    transition: 0.3s ease-in-out;
}

body[data-theme="classic"] #upload {
    background-color: #447998;
    transition: 0.3s ease-in-out;
}

body[data-theme="brun"] #upload {
    background-color: #B85C38;
    transition: 0.3s ease-in-out;
}

body[data-theme="discrete"] #upload {
    background-color: #a88532;
}