body {
    font-family: Arial, sans-serif;
    background-color: #eee;
    display: flex;
    justify-content: center;
    /* align-items: center; */
    min-height: calc(100vh - 4em); 
    margin: 0;
	padding-bottom:4em;
}

.app-container {
    width: 90%;
    max-width: 400px;
    background-color: white;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.screen {
    display: none; /* Cache toutes les pages par défaut */
}

.screen.active {
    display: block; /* Affiche la page active */
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5em;
}

form {
    display: flex;
    flex-direction: column;
}

input, button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background-color: #7091c5;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}



.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.article-item span {
    flex-grow: 1;
}

.article-item button {
    width: auto;
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 0.8em;
}

.edit-button {
	background-color: #eee;
}

.edit-button:hover {
    background-color: #eee;
}

.delete-button {
    background-color: #eee;
}

.delete-button:hover {
    background-color: #eee;
}

.article-item {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.article-item span {
    flex-grow: 1; /* Permet au texte de prendre tout l'espace restant */
}

/* Nouveau style pour le conteneur des boutons */
.article-item .button-container {
    display: flex;
    margin-left: auto; /* Aligne le conteneur des boutons à droite */
}

.article-item button {
    width: auto;
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 0.8em;
}



/* Nouveau style pour le conteneur des boutons */
.article-item .button-container {
    display: flex;
    flex-direction: column; /* Les éléments s'empilent verticalement */
    gap: 5px; /* Ajoute un espace entre les boutons */
    margin-left: auto; /* Aligne le conteneur des boutons à droite */
}

.article-item button {
    width: auto;
    /* Suppression du margin-left car le gap gère l'espacement */
    padding: 5px 10px;
    font-size: 0.8em;
}


/* Ajoutez ceci au fichier style.css */
.bottom-tab-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    z-index: 1000;
}

.bottom-tab-bar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    border: none;
    color: #555;
    padding: 8px;
    cursor: pointer;
    font-size: 0.8em;
}

.bottom-tab-bar button:hover {
    color: #007BFF;
}



/* Ajoutez ceci au fichier style.css */
.header-buttons {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

.login-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.login-button:hover {
    background-color: #0056b3;
}


/* Autocomplete Modal */

.modal-overlay {
    display: none; /* Cache la modale par défaut */
    position: fixed; /* Reste en place même au défilement */
    z-index: 1000; /* Assure que la modale est au-dessus de tout le reste */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: white; /* Ou semi-transparent pour un effet overlay */
    padding-top: 20px;
}

.modal-content {
    margin: 0 auto;
    padding: 20px;
    border-radius: 5px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#modalSearchInput {
    flex-grow: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#closeModalBtn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
}

.results-list {
    max-height: calc(100vh - 120px); /* Ajustez si nécessaire pour laisser de l'espace */
    overflow-y: auto;
}

.result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.result-item:hover {
    background-color: #f4f4f4;
}


.nav-disabled {
  pointer-events: none;
  opacity: 0.5; /* Optionnel : rend le menu grisé pour indiquer qu'il est inactif */
}





/* Styles pour les écrans plus petits (smartphones) */
@media (max-width: 600px) {
    .app-container {
        width: 100%;
        height: 100vh;
        padding: 1em;
        border-radius: 0;
        box-shadow: none;
    }
}