.my-account-section {
    padding: 70px 0px;
    background-color: #161616;
}

.account-bg {
    background-color: rgba(35, 35, 35, 0.2);
    border-radius: 16px;
    border: solid 1px #232323;
    margin-top: 50px;
}

.sidebar {
    background-color: #232323;
    height: 100%;
    border-radius: 16px;
}

.nav-items {
    flex-grow: 1;
    padding-top: 3rem;
}

.nav-bottom {
    margin-top: auto;
    padding-bottom: 2rem;
}

.nav-bottom a {
    color: #e5403e !important;
}

.sidebar .nav {
    display: flex;
    flex-direction: column;
    width: 100%;

}

.sidebar .nav-link {
    color: #fff;
    padding: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    font-weight: 300;
    font-size: 18px;
    border: none;
    background: transparent;
    position: relative;
    margin-top: 10px;
    padding-left: 4vw;
}

.sidebar .nav-link:hover {
    background-color: #3a3a3a;
    color: #ffffff;
}

.sidebar .nav-link.active {
    background-color: #161616;
    color: #e5403e;
    border-radius: 6px;
    font-weight: 200;
}

.sidebar .nav-link.logout-link {
    color: #e5403e;
    margin-top: 2rem;
    font-weight: 200;
    font-size: 18px;
    line-height: 1;
}

.sidebar .nav-link.logout-link:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #ff4757;
}

.content-section {
    display: none;
    /* animation: fadeIn 0.3s ease-in-out; */
}

.content-section.active {
    display: block;
}

.sidebar .nav-link .img-active {
    display: none;
}

.sidebar .nav-link.active .img-active {
    display: inline-block;
}

.sidebar .nav-link.active .img-default {
    display: none;
    padding-left: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.profile-form {
    /* background: linear-gradient(135deg, #2d2d2d 0%, #333333 100%); */
    padding: 2.5rem;
    border-radius: 16px;
    /* border: 1px solid #404040; */
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); */
    margin-top: 2rem;
}

.profile-form .form-label {
    color: #fff;
    font-weight: 200;
    margin-bottom: 0.5rem;
    font-size: 18px;
}

.profile-form .form-control {
    padding: 20px;
    border-radius: 5px;
    border: solid 1px #2f2f2f;
    background-color: rgba(47, 47, 47, 0.12);
    font-size: 16px;
    font-weight: 300;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
}

/* Placeholder Content */
.placeholder-content {
    background: linear-gradient(135deg, #2d2d2d 0%, #333333 100%);
    border-radius: 16px;
    border: 1px solid #404040;
    padding: 3rem;
    margin-top: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 991px) {
    .main-content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }

    .content-wrapper {
        max-width: 100%;
    }

    .profile-form {
        padding: 2rem 1.5rem;
    }
}


@media (max-width: 576px) {
    .sidebar .nav-link {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .custom-input {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .custom-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Mobile Navigation Toggle */
@media (max-width: 991px) {
    .mobile-nav-toggle {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background-color: #007bff;
        border: none;
        border-radius: 8px;
        padding: 0.5rem;
        color: white;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
        transition: all 0.3s ease;
    }

    .mobile-nav-toggle:hover {
        background-color: #0056b3;
        transform: scale(1.05);
    }
}

/* Loading animation for form */
.custom-btn.loading {
    position: relative;
    color: transparent;
}

.custom-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



/* Mobile Bottom Navigation */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        background-color: #232323;
        border-radius: 16px 16px 0 0;
        z-index: 999;
        padding: 0;
        box-shadow: 0 -1.9px 4.8px 0 rgba(178, 172, 212, 0.2);
    }

    .sidebar .nav {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        height: 60px;
    }

    .sidebar .nav-items {
        display: flex;
        flex-direction: row;
        padding-top: 0;
        flex-grow: unset;
        gap: 20px;
        width: 100%;
        justify-content: center;
        align-items: center;
    }



    .sidebar .nav-link {
        flex-direction: column;
        font-size: 12px;
        font-weight: 200;
        gap: 4px;
        padding: 8px;
        margin: 0;
        border-radius: 0;
        align-items: center;
        justify-content: center;
    }



    .sidebar .nav-link.active {
        background-color: transparent;
        color: #e5403e;
        font-size: 12px;
        font-weight: 200;
    }

    .sidebar .nav-link.logout-link {
        color: #fff;
        margin-top: 0;
        font-weight: 200;
        font-size: 12px;
    }

    .sidebar .nav-link.logout-link:hover {
        background-color: transparent;
        color: #ff4757;
    }

    .main-content {
        padding: 1.5rem 1rem;
    }

    .profile-form {
        padding: 0px;
        margin-top: 0px;
    }

    .account-bg {
        background-color: transparent;
        border-radius: 16px;
        border: solid 1px #161616;
        margin-top: 0px;
    }

    .my-account-section {
        padding: 40px 0px;
    }


    /* .market-card::before{
        transform: translateY(-80px);
    } */

}

/* .market-card::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("../img/market-card-bg.webp");
    background-position: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateY(0);
    transition: all 0.5s ease-in-out;
    z-index: -1;
    border-radius: 20px 20px 0 0;
} */