/* General styles for the container */
.fichiers-convention {
    margin: 20px;
    color: #333; /* Dark text color for light background */
}

/* Styles for the filter bar */
.filter-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: #f2f2f2;
    border-radius: 7px;
    overflow-x: auto; /* Allow horizontal scrolling */
    white-space: nowrap; /* Prevent wrapping */
}

.filter-button {
    background: transparent;
    color: #888;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    margin: 5px; /* Add margin for better spacing on small screens */
    border-radius: 7px;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 700;
    white-space: nowrap; /* Prevent button text wrapping */
}

.filter-button.active, .filter-button:hover {
    background-color: #fff;
    border: 1px solid #888;
    color: #333;
}

/* Styles for the table */
table {
    width: 100%;
    border-collapse: collapse;
    color: #333; /* Dark text color for light background */
    border: none;
}

/* Make table responsive */
#fichiers-table {
    width: 100%;
    border-collapse: collapse;
    color: #333; /* Dark text color for light background */
    border: none;
    display: table;
    overflow-x: auto; /* Enable horizontal scrolling on smaller screens */
    white-space: nowrap;
}

#fichiers-table td, #fichiers-table th {
    padding: 15px 10px;
    text-align: left;
}

#fichiers-table th {
    background-color: #f2f2f2;
    font-weight: 600;
    color: #666; /* Slightly darker text for headers */
}

#fichiers-table thead th:first-child {
    border-radius: 7px 0 0 7px;
}

#fichiers-table thead th:last-child {
    border-radius: 0 7px 7px 0;
}

#fichiers-table td a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

#fichiers-table .file-checkbox {
    margin: 0;
}

/* Styles for the download button */
#download-selected {
    color: #FFFFFF !important;
    border-width: 0px !important;
    border-color: #004289;
    border-radius: 25px;
    font-size: 17px;
    font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif !important;
    font-weight: 500 !important;
    background-image: linear-gradient(90deg, #4b93c3 0%, #53bdd3 100%);
}

#download-selected:hover {
    background-color: #45a049;
}

/* Styles for uploader column */
.uploader {
    display: flex;
    align-items: center;
}

.uploader img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.uploader-name {
    font-size: 14px;
    color: #333;
}

.uploader-email {
    font-size: 12px;
    color: #666;
}

/* Styles for the search bar */
.search-bar {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: space-between;
    margin-bottom: 20px;
    background-color: #f2f2f2;
    padding: 10px;
    border-radius: 7px;
}

.search-bar input {
    width: calc(100% - 40px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: #4CAF50;
}

/* Additional styling for table rows */
#fichiers-table .file-row {
    transition: background-color 0.3s;
}

#fichiers-table .file-row:hover {
    background-color: #f9f9f9;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .filter-bar {
        overflow-x: auto; /* Allow horizontal scrolling */
        padding: 10px; /* Add padding for better appearance */
    }

    .filter-button {
        flex: none; /* Disable flex-grow */
        margin: 5px 5px; /* Add margin for better spacing on small screens */
        text-align: center; /* Center text in buttons */
    }

    #fichiers-table td, #fichiers-table th {
        padding: 10px;
    }

    #download-selected {
        width: 100%; /* Full width button on small screens */
    }

    #fichiers-table {
        display: block;
    }
}
