/* style.css */

/* Couleur principale */
:root {
    --primary-color: #E4032E;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

nav {
    background-color: var(--primary-color);
    padding: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-top: 20px;
}

input[type="text"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
}

button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #c10228;
}

table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
}

thead th, tbody td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

#pagination {
    text-align: center;
    margin: 20px 0;
}

#pagination a {
    margin: 0 5px;
    text-decoration: none;
    color: var(--primary-color);
}

#pagination a:hover {
    text-decoration: underline;
}

#history_modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

#history_content {
    background: #fff;
    padding: 20px;

}

form {
    width: 300px;
    margin: 50px auto;
}

.error {
    color: red;
    text-align: center;
}

.success {
    color: green;
    text-align: center;
}
.upload-section{
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 5px;
}
.search-section{
    max-width: 400px;
    margin: 0 auto;
}
/* Styles pour la modale */
.modal {
    display: none; /* Masquer par défaut */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Fond noir transparent */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% du haut, centré horizontalement */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Largeur de 80% */
    max-width: 500px; /* Largeur maximale */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* Styles pour le conteneur de connexion */
.login-container,
.register-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.login-container h1,
.register-container h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.login-container form,
.register-container form {
    display: flex;
    flex-direction: column;
}

.login-container input[type="text"],
.login-container input[type="password"],
.register-container input[type="text"],
.register-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-container button,
.register-container button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 4px;
}

.login-container button:hover,
.register-container button:hover {
    background-color: #c10228;
}

.login-container p,
.register-container p {
    text-align: center;
    margin-top: 20px;
}

.login-container p a,
.register-container p a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-container p a:hover,
.register-container p a:hover {
    text-decoration: underline;
}

/* Styles pour les messages d'erreur et de succès */
.error {
    color: red;
    text-align: center;
    margin-top: 10px;
}

.success {
    color: green;
    text-align: center;
    margin-top: 10px;
}
/* Style pour le bouton de suppression en masse */
#bulk_delete_button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    margin: 20px auto;
    display: block;
}

#bulk_delete_button:hover {
    background-color: #c10228;
}

/* Style pour les cases à cocher */
#select_all {
    margin-left: 10px;
}

.file_checkbox {
    margin-left: 10px;
}
/* Styles pour la barre de progression */
.progress-bar {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 20px;
    width: 0%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 0.2s;
}
.search-section {
    margin-top: 30px;
}
