.account-icon-wrapper {
    position: relative;
    display: inline-block;
}

.account-icon {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: -10px;
    min-width: 220px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0;
    z-index: 1000;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform-origin: top center;
    transform: translateY(-20px);
    transition: all 0.225s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
}

.account-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px);
    padding: 12px 0;
    max-height: 300px; /* Adjust this value based on your content */
}

.account-dropdown::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 20px;
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    transition: opacity 0.225s ease;
    opacity: 0;
}

.account-dropdown.active::before {
    opacity: 1;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #2c3338;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    transition: padding-left 0.15s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color, #333);
    padding-left: 24px;
}

.dropdown-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
