.dropdown {
    position: relative;
    display: inline-flex;
}

.dropdown-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-round);
    transition: background-color var(--transition-fast);
    padding: 8px;
}

.dropdown-trigger:hover {
    background-color: var(--color-bg-hover);
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--color-background);
    max-width: 280px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 6px 0;
    z-index: 1001;
    border: 1px solid var(--color-border);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--color-text-primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.dropdown-item:hover {
    background-color: var(--color-bg-hover);
}

.dropdown-item:active {
    background-color: var(--color-border);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}
