/* Reset des marges et paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333333;
    line-height: 1.6;
}

/* Layout principal */
.content {
    margin-left: 250px; /* Espace pour le sidebar */
    padding: 20px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #0bae26;
    color: white;
    padding-top: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 15px 0;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    display: block;
}

.sidebar ul li a:hover {
    background-color: #68ffc3;
    border-radius: 5px;
}

/* Formulaire de connexion */
.login-form {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background-color: #0acf24;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.login-form button:hover {
    background-color: #3607a5;
}

/* Messages de succès/erreur */
.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* ********************* Formulaire de création des médicaments ***************************** */
#create-form{
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
#create-form h2{
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}
#create-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

#create-form input,
#create-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
#create-form button {
    width: 100%;
    padding: 10px;
    background-color: #07a945;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#create-form button:hover {
    background-color: #3607a5;
}


/* ***************Formulaire de création des utilisateurs********************** */
.create-form {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.create-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.create-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.create-form input,
.create-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.create-form button {
    width: 100%;
    padding: 10px;
    background-color: #07a945;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.create-form button:hover {
    background-color: #3607a5;
}

/* Messages d'erreur */
.alert-danger {
    color: #e74c3c;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* Tableau des utilisateurs */
.user-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 16px;
}

.user-table th,
.user-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.user-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    color: #333;
}

.user-table tr:hover {
    background-color: #f9f9f9;
}

.user-table a {
    color: #2c3e50;
    text-decoration: none;
}

.user-table a:hover {
    text-decoration: underline;
}

.user-table button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.user-table button:hover {
    background-color: #c0392b;
}

/* Bouton "Create New User" */
.create-user-btn {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #0acf24;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
}

.create-user-btn:hover {
    background-color: #3607a5;
}
.ajout{
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #0acf24;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
}
.ajout:hover{
    background-color: #3607a5;
}
