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;
}


.title {
    color: #01B273;
    font-family: Montserrat;
    font-size: 32px;
    font-weight: 900;
    position: absolute;
    left: 20px;
    margin: 0;
}

/*
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;
}
.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;
}


/* Agenda view page */

.calendar-container {
    max-width: 900px;
    margin: 20px auto;
    overflow: hidden;
}

header {
    padding: 15px 20px;
}

.header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

header button {
    margin: 0 5px;
    padding: 5px 10px;
    border: solid 1px;
    border-color: #e5e5e5;
    border-radius: 4px;
    background-color: #fff;
    color: black;
    font-size: 15px;
    font-family: Montserrat;
    font-weight: 500;
    cursor: pointer;
}

header button:hover {
    background-color: #01b172;
    color: #fff;
}


header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    font-family: Montserrat;
    font-weight: 500;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Fixe la largeur des colonnes */
    margin-top: 10px;
}

thead th {
    background-color: #f7f8f9;
    padding: 10px;
    text-align: center;
    color: #6b7684;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
}

tbody td {
    text-align: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    vertical-align: top;
    height: 80px; /* Augmente la hauteur */
    transition: background-color 0.3s ease;
    font-family: Montserrat;
    font-weight: 400;
}

tbody td:hover {
    background-color: #f1f7ff;
}

tbody td.today {
    background-color: #e7f3ff;
    font-weight: bold;
    border: 2px solid #01b172;
}

tbody td:not(.currentMonth) {
    color: #ccc;
}

tbody tr {
    display: table-row;
}


/* Agenda events */

td div.event {
    background-color: #f0f8ff;
    border: 1px solid #01b172;
    color: #01b172;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 8px;
    margin: 4px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

td div.event:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #01b172;
    color: #fff;
}