body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-theme header, .dark-theme footer {
    background-color: #1f1f1f;
}

header, footer {
    background-color: #2980b9;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

header .container, footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

header i, footer i {
    margin-right: 10px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

main {
    padding: 20px;
    margin-bottom: 60px; /* Ajout d'un espace en bas pour le footer */
}

#upload-section, #categories-section {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: background-color 0.3s;
}

.dark-theme #upload-section, .dark-theme #categories-section {
    background-color: #1f1f1f;
}

#upload-section h2, #categories-section h2 {
    color: #2980b9;
    margin-top: 0;
    font-size: 1.5em;
}

.dark-theme #upload-section h2, .dark-theme #categories-section h2 {
    color: #e0e0e0;
}

#search-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.dark-theme #search-input {
    background-color: #333;
    border-color: #555;
    color: #e0e0e0;
}

.file-input {
    margin: 20px 0;
}

.file-input input[type="file"] {
    display: none;
}

.file-input label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2980b9;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-input label:hover {
    background-color: #1a5276;
}

button, .btn-select-all, .btn-submit {
    background-color: #2980b9;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin: 10px 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

button:hover, .btn-select-all:hover, .btn-submit:hover {
    background-color: #1a5276;
}

.dark-theme button, .dark-theme .btn-select-all, .dark-theme .btn-submit {
    background-color: #3a3a3a;
    color: #e0e0e0;
}

.dark-theme button:hover, .dark-theme .btn-select-all:hover, .dark-theme .btn-submit:hover {
    background-color: #5a5a5a;
}

button i, .btn-select-all i {
    margin-right: 5px;
}

.error {
    color: red;
    margin-top: 10px;
}

#categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

#categories-list li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.dark-theme #categories-list li {
    background-color: #2f2f2f;
}

#categories-list li:last-child {
    margin-bottom: 0;
}

.categories-container {
    max-height: 60vh;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px; /* Ajout d'un padding pour éviter que le contenu ne touche les bords */
    transition: border-color 0.3s;
}

.dark-theme .categories-container {
    border-color: #555;
}

.submit-container {
    text-align: center;
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid #ddd;
    transition: background-color 0.3s, border-color 0.3s;
}

.dark-theme .submit-container {
    background-color: #1f1f1f;
    border-color: #555;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0; /* Réduction de la hauteur du footer */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.channel-list {
    list-style: none;
    padding: 0;
    margin: 0 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, border-color 0.3s;
}

.dark-theme .channel-list {
    background-color: #2f2f2f;
    border-color: #555;
}

.channel-list li {
    padding: 5px 10px;
    transition: background-color 0.3s;
}

.dark-theme .channel-list li {
    background-color: #3a3a3a;
}

.channel-count {
    cursor: pointer;
    color: #2980b9;
    text-decoration: underline;
}

.channel-count:hover {
    color: #1a5276;
}

.dark-theme .channel-count {
    color: #9aa9ff;
}

.dark-theme .channel-count:hover {
    color: #7884ff;
}

/* Styles supplémentaires pour la section de description */
#description-section {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

#description-section h2 {
    color: #2980b9;
    margin-top: 0;
    font-size: 1.5em;
}

#description-section p {
    color: #333;
    line-height: 1.6;
}

#description-section ul {
    list-style: none;
    padding: 0;
}

#description-section ul li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 10px;
    color: #555;
    font-weight: bold;
}

#description-section ul li::before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #2980b9;
}

#description-section ul li strong {
    color: #2980b9;
}