body {
    font-family: Arial, sans-serif;
    background-color: var(--lightGrey);
    margin: 0;
    padding: 10px 50px;
    --accentColor: #2ab08a;
    --darkerAccentColor: #2f7e68;
    --lightAccentColor: #FFEBDE;
    --darkGrey: #222;
    --midGrey: #999;
    --miderGrey: #e9e9e9;
    --lightGrey: #F7F7F7;
    --red: #f44336;
    --darkerRed: #a02727;
    --green: #4CAF50;
    color: var(--darkGrey);
}

.login-container {
    max-width: 300px;
    margin: 50px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

input, textarea, select {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ddd;
}

button {
    padding: 10px 20px;
    background-color: var(--accentColor);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: var(--darkerAccentColor);
}

.annonce {
    background-color: white;
    margin: 20px 0;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Style pour la section des photos */
.photos-container {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;
    margin-bottom: 10px;
    gap: 10px; /* Espace entre les photos */
}

/* Limitation de la taille des photos */
.photo {
    max-width: 150px; /* Limite la largeur des photos */
    max-height: 100px; /* Limite la hauteur des photos */
    object-fit: cover; /* Maintient les proportions sans déformer l'image */
    border-radius: 5px;
}

/* Style pour la pop-in centrale */
#loader-container, #deletion-confirmation-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loader, #deletion-confirmation {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: var(--accentColor);
    animation: spin 1s infinite linear;
    margin: 0 auto 10px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#loader-message {
    font-size: 16px;
    color: #333;
}

#deletion-confirmation #title_annonce {
    font-weight: bold;
}

#confirmation-button #confirmer, .suppression-button {
    background-color: var(--red);
}

#confirmation-button #confirmer:hover, .suppression-button:hover {
    background-color: var(--darkerRed);
}


/* Styles pour les vignettes */
.thumbnail-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 100px;
    height: 100px;
    /*border: 1px solid #ccc;*/
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--miderGrey);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail img:hover {
    cursor: pointer;
}

#notification, #successNotification{
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--red);
    color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

#successNotification {
    background-color: var(--green);
}

.logout-container, .back-to-dashboard-container {
    position: absolute;
    top: 10px;
    right: 20px;
}

#logoutButton, #back-to-dashboard {
    padding: 10px 20px;
    background-color: var(--red);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#back-to-dashboard {
    background-color: var(--accentColor);
}

#logoutButton:hover {
    background-color: var(--darkerRed);
}

#back-to-dashboard:hover {
    background-color: var(--darkerAccentColor);
}

/* Styles pour la table des utilisateurs */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: var(--lightAccentColor);
    color: var(--darkGrey);
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Style des boutons de suppression */
.deleteUserButton {
    background-color: var(--red);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.deleteUserButton:hover {
    background-color: var(--darkerRed);
}

#forgotPasswordLink {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: var(--accentColor);
    text-decoration: none;
    font-size: 14px;
}

#forgotPasswordLink:hover {
    color: var(--darkerAccentColor);
    text-decoration: underline;
}


