/* Réinitialisation des marges et paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* Style général du body */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f7fc;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Adjusted to align items to the top */
  min-height: 100vh; /* Changed from height to min-height */
  color: #333;
}

/* Style général du body */
body.user-management{
  font-family: 'Arial', sans-serif;
  background-color: #f4f7fc;
  display: flex;
  justify-content: center;
  align-items: center;

  flex-direction: column;
  gap: 30px;
}

/* Style général du body */
body.login-page {
  font-family: 'Arial', sans-serif;
  background-color: #f4f7fc;
  display: flex;
  justify-content: center;
  align-items: center;

}

/* Conteneur principal */
.container {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px; /* Espacement entre les sections */
}

/* Sections du tableau de bord */
.dashboard-section {
  padding: 20px;
  margin-bottom: 20px ;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}


/* Section utilisateur */
.user-info {
  background-color: #f1f1f1;
  font-size: 16px;
  color: #333;
}

.user-info p {
  margin: 10px 0;
}

/* Section des actions (boutons) */
.actions {
  display: flex;
  justify-content: center;
}

.submit-btn {
  background-color: #4a90e2;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
  transition: background-color 0.3s;
}

.logout-btn {
  background-color: #e74c3c;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
  transition: background-color 0.3s;
}

.logout-btn:hover {
  background-color: #c0392b;
}

/* Titre de la page */
.connection-title {
  font-size: 24px;
  color: #333;

  margin-bottom: 30px;
  font-weight: bold;
}


/* Section Titre */
.title-section {
  background-color: #4a90e2;
  color: #fff;
  text-align: center;
}

.title-section h2 {
  margin: 0;
  font-size: 24px;
}

/* Conteneur du formulaire de connexion */
.login-container {
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 45%;


}


/* Styles pour les labels et inputs */
.login-container label {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
  display: block;
}
/* Style du menu déroulant */
.login-container select {
  padding-right: 30px; /* Espacement pour l'icône de flèche */
  color: #333;
  margin-bottom: 8px;
}

/* Effet sur le menu déroulant au survol */
.login-container select:hover {
  border-color: #4a90e2;
}

.login-container input[type="text"],
.login-container input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease;
}

/* Ajout d'un focus style aux inputs */
.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
  border-color: #4a90e2;
  outline: none;
}

/* Style pour le bouton de soumission */
.login-container input[type="submit"] {
  background-color: #4a90e2;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  margin-top: 15px;
}

/* Effet au survol du bouton de soumission */
.login-container input[type="submit"]:hover {
  background-color: #357abd;
}

/* Message d'erreur */
.error {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

button {
    margin-bottom: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

/* Styles pour le bouton de navigation */
.navigation {
  margin: 20px 0;
  text-align: left; /* Aligne le bouton à gauche */
}

.back-button {
  background-color: #007BFF; /* Couleur bleue */
  color: white; /* Texte en blanc */
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #0056b3; /* Couleur plus foncée au survol */
}
