body {
    background: rgba(245, 245, 245, 1);
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: column;
    background: rgba(245, 245, 245, 1);
}

.viewpage {
    background-color: rgba(245, 245, 245, 1);
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Allow cards to wrap to the next line */
    align-items: center;
    justify-content: center;
    gap: 50px; /* Add space between cards */
    margin-top: 40px;
}



/*
HEADER ELEMENTS
 */



.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 8vh;
    margin-top: 25px;
}

/*
left header
 */


.header-left {
    display: flex;
    align-items: center;
    margin-left: 100px;
    margin-top: 20px;
}



/*
center header
 */

.header-nav {
    padding: 5px;
    padding-left: 20px;
    width: 70vh;
    height: 5vh;
    display: inline-grid;
    border-radius: 35px;
    margin: 0 auto;
    border: 2px solid #7a7a7a1f;
}

span.header-nav-title {
    color: #4E4E4E;
    font-family: Roboto;
    font-size: 14px;
    font-weight: 500;
}

span.header-nav-desc {
    color: #7A7A7A;
    font-family: 'Roboto';
    font-size: 14px;
}




/*
right header
 */
.header-buttons {
    position: absolute;
    display: flex;
    top: 10px;
    right: 20px;
    align-items: center;
}



.wallet {
    display: flex;
    flex-direction: column;
    width: 250px;
    background: #4E4E4E;
    height: 110px;
    border-radius: 30px;
    margin-right: 50px;
    position: relative;
    padding: 10px;
}

.wallet-title {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}

.wallet-info {
    bottom: 10px;
    left: 10px;
    display: flex;
    margin: auto ;
    align-items: center;
    gap: 10px;
}

.balance-amount-hide{
    display: none;
}

.title {
    color: #01B273;
    font-family: Montserrat;
    font-size: 32px;
    font-weight: 900;
    position: absolute;
    left: 20px;
    margin: 0;
}

.balance-amount {
    display: none;
    color: #fff;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.toggle-balance {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.eye-icon {
    display: none;
    transition: opacity 0.3s ease-in-out;
    font-size: 20px;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.profile-pic {
    cursor: pointer;
    border-radius: 50%;
}


.dropdown-content {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
    padding: 10px 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: Arial, sans-serif;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.show {
    display: block;
}

.menu-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
}

.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #333;
    font-size: 20px;
    margin-top: 5px;
    margin-right: 10px;
    flex-shrink: 0;
}

.text {
    flex: 1;
    font-size: 16px;
}

.dropdown:hover .dropdown-content {
    display: block;
}
/* Ajouter un délai sur la fermeture */
.dropdown-content {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/*

Profil register form elements

 */



#profile-form {
    display: grid;
    gap: 10px;
}

#profile-form input[type="text"],
#profile-form input[type="date"],
#profile-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#profile-form textarea {
    height: 100px;
    resize: vertical;
}


/*

Categories elements

 */



.category-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.category-list {
    display: flex;
    gap: 20px;
}

.category {
    display: flex;
    margin-top: 20px;
    margin-left: 100px;
    margin-right: 100px;
    align-items: center;
}

.category-icon {
    width: 60px;
    height: 60px;
    background-color: #01B273;
    border-radius: 50%;
    display: flex;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ajout de l'ombre portée */
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.category-icon:hover {
    transform: translateY(-4px); /* Effet de léger soulèvement au survol */
}


.category-icon i {
    color: #fff;
    font-size: 30px;
}

.category-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
}


.category-name:hover {
    text-decoration: underline;
    cursor: pointer;
}