body {
	font-family: 'Montserrat', sans-serif;
	background-color: #f4f4f9;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	margin: 0;
}

.container {
	display: flex;
	align-items: center;
	flex-direction: column;
	position: relative;
	background-color: white;
	border-radius: 10px;
	box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
	padding: 20px;
	max-width: 1200px;
	min-width: 410px;
	width: 90%;
	text-align: center;
}

h2 {
	color: #333;
	font-weight: 600;
	margin: 0 0 20px 0;
}

label {
	display: block;
	margin-bottom: 8px;
	text-align: left;
}

input {
	margin: 0px;
	width: 100%;
	height: 24px;
	padding: 10px;
	margin-bottom: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 16px;
}

input[type="email"],
input[type="password"] {
	width: 100%;
	padding: 10px;
	margin-bottom: 20px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 16px;
}
.checkbox {
    margin: 0 10px;
	display: inline-flex;        /* Aligne le texte et la checkbox sur une même ligne */
    white-space: nowrap;         /* Empêche le texte de se couper sur plusieurs lignes */
}
.checkbox input[type="checkbox"] {
    transform: scale(1.5);
	margin-left: 10px;
}
.ajout input {
	max-width: 150px;
}
.ajout {
	text-align: center;
	width: 95%;
	background-color: #f1f1f1;
	border-radius: 10px;
	box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
	padding: 20px;
}

button {
	width: auto;
	padding: 10px;
	background-color: #28a745;
	color: white;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	cursor: pointer;
	margin: 0px;
}

button:hover {
	background-color: #218838;
}

.forgot-password {
	margin-top: 10px;
	background-color: #007bff;
}

.forgot-password:hover {
	background-color: #0056b3;
}

.buttons {
	margin-top: 20px;
}

.buttons button {
	background-color: #007bff;
	margin-bottom: 10px;
}

.buttons button:hover {
	background-color: #0056b3;
}

.logout-button {
	position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
	background-color: #dc3545;
}

.logout-button:hover {
	background-color: #c82333;
}

button[name="add_entry"] {

    background-color: #28a745;
}

.menu-button {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.menu-button:hover {
    background-color: #218838; /* Couleur du bouton au survol */
}


.error-message {
	color: red;
	margin-top: 10px;
}
table {
	width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td, table tr {
	height: auto;
	padding: 10px;
	line-height: 1;
    border: 1px solid #ccc;
    padding: 10px 0;
}

table th {
    background-color: #007bff;
    color: white;
}

table td button {
	background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

table td button:hover {
    background-color: #c82333;
}

form input[type="text"], form input[type="checkbox"] {
    padding: 5px;
    width: 90%;
}

form button {
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #218838;
}

/* Ajuster les styles du tableau pour les petits écrans */
@media screen and (max-width: 768px) {
    table, th, td {
        font-size: 14px; /* Réduire la taille de la police pour les petits écrans */
    }

    table th, table td {
        padding: 8px; /* Réduire le padding pour rendre le tableau plus compact */
    }

    /* Optionnel : Réduire la largeur du tableau à 100% */
    table {
        width: 100%; /* Utiliser 100% de la largeur de l'écran */
    }

    /* Optionnel : Rendre le texte dans les colonnes plus compact */
    td, th {
        white-space: nowrap; /* Empêche le texte de se couper en plusieurs lignes */
    }
}