.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
    position: relative;
}


.dropdown-button::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.4rem 0.35rem 0 0.35rem;
    border-color: currentColor transparent transparent transparent;
    transition: transform 0.3s;
}

.dropdown.active .dropdown-button::after {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    color: black;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(-10px);
    transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0.3s;
    visibility: hidden;
}

.dropdown.active .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown.active {
    color: var(--primary-color);
}


.dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

@media (max-width: 768px) {
    .dropdown-content {
        width: 100%;
    }
}

a.header-profile-button {
    color: var(--primary-color);
}
