body {
    background: rgba(245, 245, 245, 1);
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

.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;
}

.main-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 1300px;
    max-width: 100%;
    align-self: start;
}

.side-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
    align-self: start;
}

.sessions-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 1300px;
}

.course-title {
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.course-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.course-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
}

.course-info {
    text-align: center;
}

.course-teacher {
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.course-description {
    font-family: 'Montserrat';
    font-weight: 400;
    font-size: 16px;
    color: #555;
    text-align: center;
}

.side-card .section-title {
    font-family: 'Montserrat';
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 15px;
}

.side-card .info-item {
    font-family: 'Montserrat';
    font-weight: 400;
    font-size: 12px;
    margin-bottom: 10px;
}

.sessions-card .session-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.session-item:last-child {
    border-bottom: none;
}

.session-item .session-info {
    font-family: 'Montserrat';
    font-weight: 400;
    font-size: 16px;
}

.session-item .session-button {
    padding: 5px 10px;
    background-color: #01B273;
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    width: 150px;
    height: 40px;
    font-family: 'Montserrat';
    font-weight: 600;
}

.session-button:disabled {
    padding: 5px 10px;
    background-color: #035035;
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: not-allowed;
    width: 150px;
    height: 40px;
    font-family: 'Montserrat';
    font-weight: 600;
}


.session-button:hover{
    background-color: rgba(1, 178, 115, 0.54);
}
.session-button:disabled:hover{
    background-color: #333;
}

p.info-item {
    background: #01B273;
    width: 300px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 19px;
    color: #fff;
}
